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