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.



125
126
127
128
# File 'lib/command-set/command-set.rb', line 125

def initialize(pairs)
  @pairs = pairs.dup
  super("Invalid arguments: #{pairs.map{|n,v| "#{n}: #{v.inspect}"}.join(", ")}")
end

Instance Attribute Details

#pairsObject (readonly)

Returns the value of attribute pairs.



130
131
132
# File 'lib/command-set/command-set.rb', line 130

def pairs
  @pairs
end