Exception: Dreck::GreedyAbsorptionError
- Inherits:
-
DreckError
- Object
- RuntimeError
- DreckError
- Dreck::GreedyAbsorptionError
- Defined in:
- lib/dreck/exceptions.rb
Overview
Raised during argument absorption if a greedy list was expected but all arguments have already been absorbed.
Instance Method Summary collapse
-
#initialize(actual, expected) ⇒ GreedyAbsorptionError
constructor
A new instance of GreedyAbsorptionError.
Constructor Details
#initialize(actual, expected) ⇒ GreedyAbsorptionError
Returns a new instance of GreedyAbsorptionError.
24 25 26 |
# File 'lib/dreck/exceptions.rb', line 24 def initialize(actual, expected) super "too few arguments given (#{actual}, expected >#{expected})" end |