Class: Melbourne::AST::Super

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

Overview

A super statement as in:

def method
  super
end

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 Node

#ascii_graph

Constructor Details

#initialize(line, arguments) ⇒ Super

Returns a new instance of Super.



397
398
399
400
401
# File 'lib/melbourne/ast/sends.rb', line 397

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

Instance Attribute Details

#blockObject

A block that is passed to super() if one is passed



395
396
397
# File 'lib/melbourne/ast/sends.rb', line 395

def block
  @block
end

#nameObject

The name of the node



391
392
393
# File 'lib/melbourne/ast/sends.rb', line 391

def name
  @name
end