Module: FindMax::Modules::Info

Included in:
Cli, Services::FindMaxNumbers
Defined in:
lib/find_max/modules/info.rb

Instance Method Summary collapse

Instance Method Details

#error_message(message) ⇒ Object



5
6
7
# File 'lib/find_max/modules/info.rb', line 5

def error_message(message)
  $stderr.puts message.colorize(:red)
end

#info(message) ⇒ Object



9
10
11
# File 'lib/find_max/modules/info.rb', line 9

def info(message)
  puts message.colorize(:blue)
end

#result(arr) ⇒ Object



13
14
15
16
# File 'lib/find_max/modules/info.rb', line 13

def result(arr)
  puts I18n.t('result.title').colorize(:green)
  puts arr.to_s.colorize(:green)
end