Exception: Isomorphic::InvalidNodeClass

Inherits:
NodeError show all
Defined in:
lib/isomorphic/node.rb

Overview

Raised when an Isomorphic node cannot find a class.

Instance Attribute Summary collapse

Attributes inherited from IsomorphicError

#base

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, klass) ⇒ InvalidNodeClass

Default constructor.

Parameters:

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

    the message

  • klass (Clsas)

    the class



35
36
37
38
39
# File 'lib/isomorphic/node.rb', line 35

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

  @klass = klass
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



29
30
31
# File 'lib/isomorphic/node.rb', line 29

def klass
  @klass
end