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.
      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
#pairs ⇒ Object (readonly)
Returns the value of attribute pairs.
      130 131 132  | 
    
      # File 'lib/command-set/command-set.rb', line 130 def pairs @pairs end  |