Module: TravianBot::Application::Display

Included in:
TravianBot::Application, Shell
Defined in:
lib/travian_bot/application/display.rb

Instance Method Summary collapse

Instance Method Details

#h1(text) ⇒ Object



10
11
12
13
14
15
# File 'lib/travian_bot/application/display.rb', line 10

def h1(text)
  puts ' '
  puts "#{text}".red
  puts "=".red * text.length
  puts ' '
end

#h2(text) ⇒ Object



17
18
19
20
# File 'lib/travian_bot/application/display.rb', line 17

def h2(text)
  puts "#{text}".yellow
  puts "-".yellow * text.length
end

#new_lineObject



30
31
32
# File 'lib/travian_bot/application/display.rb', line 30

def new_line
  puts ' '
end

#text(text) ⇒ Object



22
23
24
# File 'lib/travian_bot/application/display.rb', line 22

def text(text)
  puts text.to_s.green
end

#warning(text) ⇒ Object



26
27
28
# File 'lib/travian_bot/application/display.rb', line 26

def warning(text)
  puts text.to_s.red
end