Exception: Argible::UnknownArgumentError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Argible::UnknownArgumentError
- Defined in:
- lib/argible/unknown_argument_error.rb
Overview
As the name implies, this error occurs when an argible annotated method references an argument name that does NOT exist in the method signature.
argible(:junk => :to_i)
def my_method(arg1, arg2); end;
Instance Method Summary collapse
-
#initialize(class_name, method_name, key) ⇒ UnknownArgumentError
constructor
A new instance of UnknownArgumentError.
Constructor Details
#initialize(class_name, method_name, key) ⇒ UnknownArgumentError
Returns a new instance of UnknownArgumentError.
11 12 13 |
# File 'lib/argible/unknown_argument_error.rb', line 11 def initialize(class_name, method_name, key) super("#{class_name}##{method_name}' does not include an argument named: #{key}" ) end |