Class: Refract::SuperNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/super_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject

Returns the value of attribute arguments.



12
13
14
# File 'lib/refract/nodes/super_node.rb', line 12

def arguments
  @arguments
end

#blockObject

Returns the value of attribute block.



12
13
14
# File 'lib/refract/nodes/super_node.rb', line 12

def block
  @block
end