Exception: Isomorphic::InvalidNodeObject
- Inherits:
-
NodeError
- Object
- StandardError
- IsomorphicError
- NodeError
- Isomorphic::InvalidNodeObject
- Defined in:
- lib/isomorphic/node.rb
Overview
Raised when an object is not an instance of a class.
Instance Attribute Summary collapse
-
#klass ⇒ Class
readonly
The class.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Attributes inherited from IsomorphicError
Instance Method Summary collapse
-
#initialize(message = nil, klass, object) ⇒ InvalidNodeObject
constructor
Default constructor.
Constructor Details
#initialize(message = nil, klass, object) ⇒ InvalidNodeObject
Default constructor.
55 56 57 58 59 |
# File 'lib/isomorphic/node.rb', line 55 def initialize( = nil, klass, object) super() @klass, @object = klass, object end |
Instance Attribute Details
#klass ⇒ Class (readonly)
Returns the class.
48 49 50 |
# File 'lib/isomorphic/node.rb', line 48 def klass @klass end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
48 |
# File 'lib/isomorphic/node.rb', line 48 attr_reader :klass, :object |