Class: Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/r3d3/interface/menu.rb

Instance Method Summary collapse

Constructor Details

#initializeMenu

Returns a new instance of Menu.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/r3d3/interface/menu.rb', line 6

def initialize
  puts "\e[32mWelcome in toy robot simulator!\e[0m"
  puts %q(
           _
          [ ]
         (   )
          |>|
       __/===\__
      //| o=o |\\
    <]  | o=o |  [>
        \=====/
       / / | \ \
      <_________>
  )
  instantiate_world
  print_commands 
end