Exception: Dentaku::NodeError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/dentaku/exceptions.rb

Instance Attribute Summary collapse

Attributes included from Error

#assigned_to

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual.



31
32
33
# File 'lib/dentaku/exceptions.rb', line 31

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected.



31
32
33
# File 'lib/dentaku/exceptions.rb', line 31

def expected
  @expected
end

#operandObject (readonly)

Returns the value of attribute operand.



31
32
33
# File 'lib/dentaku/exceptions.rb', line 31

def operand
  @operand
end