Exception: Onboardable::UndefinedMethodError
- Defined in:
- lib/onboardable/errors.rb
Overview
Error raised when a method is called on an object that does not define it.
Instance Method Summary collapse
-
#initialize(klass, method) ⇒ UndefinedMethodError
constructor
Initializes a new instance of UndefinedMethodError.
Constructor Details
#initialize(klass, method) ⇒ UndefinedMethodError
Initializes a new instance of UndefinedMethodError.
13 14 15 |
# File 'lib/onboardable/errors.rb', line 13 def initialize(klass, method) super("Method `#{method}` is not defined for `#{klass}`.") end |