Exception: Campa::Error::Arity
- Inherits:
-
Campa::ExecutionError
- Object
- StandardError
- Campa::ExecutionError
- Campa::Error::Arity
- Defined in:
- lib/campa/error/arity.rb
Instance Method Summary collapse
-
#initialize(fun, expected, given) ⇒ Arity
constructor
A new instance of Arity.
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 |