Exception: SimpleScripting::Argv::InvalidCommand
- Inherits:
-
StandardError
- Object
- StandardError
- SimpleScripting::Argv::InvalidCommand
- Defined in:
- lib/simple_scripting/argv.rb
Instance Attribute Summary collapse
-
#valid_commands ⇒ Object
readonly
Returns the value of attribute valid_commands.
Instance Method Summary collapse
-
#initialize(message, valid_commands) ⇒ InvalidCommand
constructor
A new instance of InvalidCommand.
Constructor Details
#initialize(message, valid_commands) ⇒ InvalidCommand
Returns a new instance of InvalidCommand.
16 17 18 19 |
# File 'lib/simple_scripting/argv.rb', line 16 def initialize(, valid_commands) super() @valid_commands = valid_commands end |
Instance Attribute Details
#valid_commands ⇒ Object (readonly)
Returns the value of attribute valid_commands.
14 15 16 |
# File 'lib/simple_scripting/argv.rb', line 14 def valid_commands @valid_commands end |