Exception: Isomorphic::InvalidInflectionMethodName

Inherits:
InflectorError show all
Defined in:
lib/isomorphic/inflector.rb

Overview

Raised when an Isomorphic inflector cannot find an instance method by name.

Instance Attribute Summary collapse

Attributes inherited from IsomorphicError

#base

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, base, method_name) ⇒ InvalidInflectionMethodName

Default constructor.

Parameters:

  • message (#to_s) (defaults to: nil)

    the message

  • base (Module)

    the base module

  • method_name (#to_sym)

    the method name



42
43
44
45
46
# File 'lib/isomorphic/inflector.rb', line 42

def initialize(message = nil, base, method_name)
  super(message, base)

  @method_name = method_name
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



35
36
37
# File 'lib/isomorphic/inflector.rb', line 35

def method_name
  @method_name
end