Exception: Dentaku::NodeError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual.



16
17
18
# File 'lib/dentaku/exceptions.rb', line 16

def actual
  @actual
end

#childObject (readonly)

Returns the value of attribute child.



16
17
18
# File 'lib/dentaku/exceptions.rb', line 16

def child
  @child
end

#expectObject (readonly)

Returns the value of attribute expect.



16
17
18
# File 'lib/dentaku/exceptions.rb', line 16

def expect
  @expect
end