Class: Menu
- Inherits:
-
Object
- Object
- Menu
- Defined in:
- lib/r3d3/interface/menu.rb
Instance Method Summary collapse
-
#initialize ⇒ Menu
constructor
A new instance of Menu.
Constructor Details
#initialize ⇒ Menu
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 |