class Namesies::Reporter
Attributes
title[RW]
Public Class Methods
new(title)
click to toggle source
# File lib/namesies/reporter.rb, line 7 def initialize(title) @title = title end
Public Instance Methods
recommendation(rec)
click to toggle source
# File lib/namesies/reporter.rb, line 23 def recommendation(rec) puts " " + rec end
result(result, color = nil)
click to toggle source
# File lib/namesies/reporter.rb, line 11 def result(result, color = nil) out = " #{@title}: " if color out += result.send(color) else out += result end puts out end