Exception: Dentaku::NodeError

Inherits:
StandardError
  • 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.



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

def initialize(expect, actual, child)
  @expect = Array(expect)
  @actual = actual
  @child = child
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual.



13
14
15
# File 'lib/dentaku/exceptions.rb', line 13

def actual
  @actual
end

#childObject (readonly)

Returns the value of attribute child.



13
14
15
# File 'lib/dentaku/exceptions.rb', line 13

def child
  @child
end

#expectObject (readonly)

Returns the value of attribute expect.



13
14
15
# File 'lib/dentaku/exceptions.rb', line 13

def expect
  @expect
end