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