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