Exception: Campa::Error::Arity

Inherits:
Campa::ExecutionError show all
Defined in:
lib/campa/error/arity.rb

Instance Method Summary collapse

Constructor Details

#initialize(fun, expected, given) ⇒ Arity

Returns a new instance of Arity.



4
5
6
7
8
# File 'lib/campa/error/arity.rb', line 4

def initialize(fun, expected, given)
  msg = "Arity error when invoking #{fun}: "
  msg += "expected #{expected} arg(s) but #{given} given"
  super msg
end