Exception: Unparser::InvalidNodeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/unparser.rb

Overview

Error raised when unparser encounters an invalid AST

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, node) ⇒ InvalidNodeError

Returns a new instance of InvalidNodeError.



42
43
44
45
46
# File 'lib/unparser.rb', line 42

def initialize(message, node)
  super(message)
  @node = node
  freeze
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



40
41
42
# File 'lib/unparser.rb', line 40

def node
  @node
end