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