Exception: Dreck::GreedyAbsorptionError

Inherits:
DreckError
  • Object
show all
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

Constructor Details

#initialize(actual, expected) ⇒ GreedyAbsorptionError

Returns a new instance of GreedyAbsorptionError.

Parameters:

  • actual (Integer)

    the actual number of arguments given

  • expected (Integer)

    the expected number of arguments



24
25
26
# File 'lib/dreck/exceptions.rb', line 24

def initialize(actual, expected)
  super "too few arguments given (#{actual}, expected >#{expected})"
end