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