Exception: Command::ArgumentInvalidException
- Inherits:
-
CommandException
- Object
- StandardError
- CommandException
- Command::ArgumentInvalidException
- Defined in:
- lib/command-set/command-set.rb
Instance Attribute Summary collapse
-
#pairs ⇒ Object
readonly
Returns the value of attribute pairs.
Attributes inherited from CommandException
Instance Method Summary collapse
-
#initialize(pairs) ⇒ ArgumentInvalidException
constructor
A new instance of ArgumentInvalidException.
Methods inherited from CommandException
Constructor Details
#initialize(pairs) ⇒ ArgumentInvalidException
Returns a new instance of ArgumentInvalidException.
123 124 125 126 |
# File 'lib/command-set/command-set.rb', line 123 def initialize(pairs) @pairs = pairs.dup super("Bad arguments: #{pairs.inspect}") end |
Instance Attribute Details
#pairs ⇒ Object (readonly)
Returns the value of attribute pairs.
128 129 130 |
# File 'lib/command-set/command-set.rb', line 128 def pairs @pairs end |