Class: Refract::UndefNode
Instance Attribute Summary collapse
-
#names ⇒ Object
Returns the value of attribute names.
Instance Method Summary collapse
-
#initialize(prism_node: nil, names:) ⇒ UndefNode
constructor
A new instance of UndefNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, names:) ⇒ UndefNode
Returns a new instance of UndefNode.
5 6 7 8 9 |
# File 'lib/refract/nodes/undef_node.rb', line 5 def initialize(prism_node: nil, names:) @prism_node = prism_node => Prism::Node | nil @names = names freeze end |
Instance Attribute Details
#names ⇒ Object
Returns the value of attribute names.
11 12 13 |
# File 'lib/refract/nodes/undef_node.rb', line 11 def names @names end |