Exception: Onboardable::UndefinedMethodError

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

Constructor Details

#initialize(klass, method) ⇒ UndefinedMethodError

Initializes a new instance of UndefinedMethodError.

Parameters:

  • klass (Class)

    The class that does not have the method defined.

  • method (Symbol)

    The method that was called on the class.



13
14
15
# File 'lib/onboardable/errors.rb', line 13

def initialize(klass, method)
  super("Method `#{method}` is not defined for `#{klass}`.")
end