Exception: Dentaku::NodeError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#recipient_variable

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual.



24
25
26
# File 'lib/dentaku/exceptions.rb', line 24

def actual
  @actual
end

#childObject (readonly)

Returns the value of attribute child.



24
25
26
# File 'lib/dentaku/exceptions.rb', line 24

def child
  @child
end

#expectObject (readonly)

Returns the value of attribute expect.



24
25
26
# File 'lib/dentaku/exceptions.rb', line 24

def expect
  @expect
end