Exception: Dentaku::NodeError
- Defined in:
- lib/dentaku/exceptions.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Attributes included from Error
Instance Method Summary collapse
-
#initialize(expected, actual, operand) ⇒ NodeError
constructor
A new instance of NodeError.
Constructor Details
#initialize(expected, actual, operand) ⇒ NodeError
Returns a new instance of NodeError.
33 34 35 36 37 |
# File 'lib/dentaku/exceptions.rb', line 33 def initialize(expected, actual, operand) @expected = Array(expected) @actual = actual @operand = operand end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
31 32 33 |
# File 'lib/dentaku/exceptions.rb', line 31 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
31 32 33 |
# File 'lib/dentaku/exceptions.rb', line 31 def expected @expected end |
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
31 32 33 |
# File 'lib/dentaku/exceptions.rb', line 31 def operand @operand end |