Exception: Unparser::InvalidNodeError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Unparser::InvalidNodeError
- Defined in:
- lib/unparser.rb
Overview
Error raised when unparser encounters an invalid AST
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(message, node) ⇒ InvalidNodeError
constructor
A new instance of InvalidNodeError.
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(, node) super() @node = node freeze end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
40 41 42 |
# File 'lib/unparser.rb', line 40 def node @node end |