Class: Refract::InterpolatedXStringNode
- Defined in:
- lib/refract/nodes/interpolated_x_string_node.rb
Instance Attribute Summary collapse
-
#parts ⇒ Object
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(prism_node: nil, parts:) ⇒ InterpolatedXStringNode
constructor
A new instance of InterpolatedXStringNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, parts:) ⇒ InterpolatedXStringNode
Returns a new instance of InterpolatedXStringNode.
5 6 7 8 9 |
# File 'lib/refract/nodes/interpolated_x_string_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_x_string_node.rb', line 11 def parts @parts end |