Class: MenuCommander::Command
- Inherits:
-
MisterBin::Command
- Object
- MisterBin::Command
- MenuCommander::Command
- Defined in:
- lib/menu_commander/command.rb
Instance Attribute Summary collapse
-
#last_command ⇒ Object
readonly
Returns the value of attribute last_command.
Instance Method Summary collapse
Instance Attribute Details
#last_command ⇒ Object (readonly)
Returns the value of attribute last_command.
21 22 23 |
# File 'lib/menu_commander/command.rb', line 21 def last_command @last_command end |
Instance Method Details
#menu ⇒ Object
34 35 36 |
# File 'lib/menu_commander/command.rb', line 34 def ||= Menu.new end |
#run ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/menu_commander/command.rb', line 23 def run verify_sanity say "#{menu.options.header}\n" if ..header if args['--loop'] else end end |