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