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.
20 21 22 |
# File 'lib/menu_commander/command.rb', line 20 def last_command @last_command end |
Instance Method Details
#menu ⇒ Object
33 34 35 |
# File 'lib/menu_commander/command.rb', line 33 def ||= Menu.new end |
#run ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/menu_commander/command.rb', line 22 def run raise Exit, VERSION if args['--version'] raise MenuNotFound.new(paths: , config: config) unless if args['--loop'] else end end |