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