Exception: Isomorphic::InvalidInflectionClass

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

Overview

Raised when an Isomorphic inflector cannot find a class.

Instance Attribute Summary collapse

Attributes inherited from IsomorphicError

#base

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, base, klass) ⇒ InvalidInflectionClass

Default constructor.

Parameters:

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

    the message

  • base (Module)

    the base module

  • klass (Class)

    the class



24
25
26
27
28
# File 'lib/isomorphic/inflector.rb', line 24

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

  @klass = klass
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



17
18
19
# File 'lib/isomorphic/inflector.rb', line 17

def klass
  @klass
end