Class: Rubinius::AST::Super

Inherits:
SendWithArguments show all
Defined in:
lib/compiler/ast/sends.rb

Direct Known Subclasses

ZSuper

Instance Attribute Summary collapse

Attributes inherited from SendWithArguments

#arguments

Attributes inherited from Send

#check_for_local, #privately, #receiver, #variable

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from SendWithArguments

#arguments_sexp

Methods inherited from Send

#arguments_sexp, #check_local_reference, #receiver_sexp, #sexp_name

Methods inherited from Node

#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk

Constructor Details

#initialize(line, arguments) ⇒ Super

Returns a new instance of Super.



563
564
565
566
567
568
# File 'lib/compiler/ast/sends.rb', line 563

def initialize(line, arguments)
  @line = line
  @block = nil
  @name = nil
  @arguments = ActualArguments.new line, arguments
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



561
562
563
# File 'lib/compiler/ast/sends.rb', line 561

def block
  @block
end

#nameObject

Returns the value of attribute name.



561
562
563
# File 'lib/compiler/ast/sends.rb', line 561

def name
  @name
end

Instance Method Details

#to_sexpObject



570
571
572
# File 'lib/compiler/ast/sends.rb', line 570

def to_sexp
  arguments_sexp :super
end