Exception: Rescue::NoParameterMethodError

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/rescue/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(clazz, name) ⇒ NoParameterMethodError

Returns a new instance of NoParameterMethodError.



11
12
13
# File 'lib/rescue/errors.rb', line 11

def initialize clazz, name
  super "Undefined method `#{name}` for #{clazz.name}. Please define private method `#{name}` to return the permissible parameters."
end