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