Exception: Isomorphic::InvalidInflectionTerm

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

Overview

Raised when an Isomorphic inflector cannot find an inflectable term.

Instance Attribute Summary collapse

Attributes inherited from IsomorphicError

#base

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, base, term) ⇒ InvalidInflectionTerm

Default constructor.

Parameters:

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

    the message

  • base (Module)

    the base module

  • term (Object)

    the inflectable term



60
61
62
63
64
# File 'lib/isomorphic/inflector.rb', line 60

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

  @term = term
end

Instance Attribute Details

#termObject (readonly)

Returns the value of attribute term.



53
54
55
# File 'lib/isomorphic/inflector.rb', line 53

def term
  @term
end