class Dreck::AbsorptionError
Raised during argument absorption if arguments are either left over or are insufficient to populate the expected results.
Public Class Methods
new(specified, supplied)
click to toggle source
@param specified [Integer] the number of arguments specified @param supplied [Integer] the number of arguments supplied
Calls superclass method
# File lib/dreck/exceptions.rb, line 18 def initialize(specified, supplied) nmany = specified < supplied ? "too many" : "too few" super "#{nmany} arguments given (#{supplied}, expected #{specified})" end