Exception: SimpleScripting::Argv::InvalidCommand

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_scripting/argv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, valid_commands)
  super(message)
  @valid_commands = valid_commands
end

Instance Attribute Details

#valid_commandsObject (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