Exception: Dentaku::NodeError
- Defined in:
- lib/dentaku/exceptions.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#expect ⇒ Object
readonly
Returns the value of attribute expect.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(expect, actual, child) ⇒ NodeError
constructor
A new instance of NodeError.
Constructor Details
#initialize(expect, actual, child) ⇒ NodeError
Returns a new instance of NodeError.
26 27 28 29 30 |
# File 'lib/dentaku/exceptions.rb', line 26 def initialize(expect, actual, child) @expect = Array(expect) @actual = actual @child = child end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
24 25 26 |
# File 'lib/dentaku/exceptions.rb', line 24 def actual @actual end |
#child ⇒ Object (readonly)
Returns the value of attribute child.
24 25 26 |
# File 'lib/dentaku/exceptions.rb', line 24 def child @child end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
24 25 26 |
# File 'lib/dentaku/exceptions.rb', line 24 def expect @expect end |