Method: Namesies::Reporter#result

Defined in:
lib/namesies/reporter.rb

#result(result, color = nil) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# 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