Exception: Command::ArgumentInvalidException

Inherits:
CommandException show all
Defined in:
lib/command-set/command-set.rb

Instance Attribute Summary collapse

Attributes inherited from CommandException

#command, #raw_input

Instance Method Summary collapse

Methods inherited from CommandException

#message

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

#pairsObject (readonly)

Returns the value of attribute pairs.



128
129
130
# File 'lib/command-set/command-set.rb', line 128

def pairs
  @pairs
end