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.
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.
18 19 20 21 22 |
# File 'lib/dentaku/exceptions.rb', line 18 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.
16 17 18 |
# File 'lib/dentaku/exceptions.rb', line 16 def actual @actual end |
#child ⇒ Object (readonly)
Returns the value of attribute child.
16 17 18 |
# File 'lib/dentaku/exceptions.rb', line 16 def child @child end |
#expect ⇒ Object (readonly)
Returns the value of attribute expect.
16 17 18 |
# File 'lib/dentaku/exceptions.rb', line 16 def expect @expect end |