Class: ToyRobot::Bin::Runner
- Inherits:
-
Object
- Object
- ToyRobot::Bin::Runner
- Includes:
- IOUtils
- Defined in:
- lib/toy_robot/bin/runner.rb
Instance Attribute Summary collapse
-
#roboto ⇒ Object
readonly
Returns the value of attribute roboto.
-
#selected_option ⇒ Object
readonly
Returns the value of attribute selected_option.
-
#simulator ⇒ Object
readonly
Returns the value of attribute simulator.
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #start ⇒ Object
Methods included from IOUtils
#_print, #delay, #green, #print_with_delay, #red, #yellow
Constructor Details
Instance Attribute Details
#roboto ⇒ Object (readonly)
Returns the value of attribute roboto.
7 8 9 |
# File 'lib/toy_robot/bin/runner.rb', line 7 def roboto @roboto end |
#selected_option ⇒ Object (readonly)
Returns the value of attribute selected_option.
7 8 9 |
# File 'lib/toy_robot/bin/runner.rb', line 7 def selected_option @selected_option end |
#simulator ⇒ Object (readonly)
Returns the value of attribute simulator.
7 8 9 |
# File 'lib/toy_robot/bin/runner.rb', line 7 def simulator @simulator end |
Instance Method Details
#start ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/toy_robot/bin/runner.rb', line 15 def start show_art show_help @selected_option = capture_input handle_selected_option end |