Exception: Argible::UnknownArgumentError

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

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