Class: Melbourne::AST::Super
- Inherits:
-
SendWithArguments
- Object
- Node
- Send
- SendWithArguments
- Melbourne::AST::Super
- Defined in:
- lib/melbourne/ast/sends.rb
Overview
A super statement as in:
def method
super
end
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block ⇒ Object
A block that is passed to super() if one is passed.
-
#name ⇒ Object
The name of the node.
Attributes inherited from SendWithArguments
Attributes inherited from Send
#check_for_local, #privately, #receiver, #variable
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, arguments) ⇒ Super
constructor
A new instance of Super.
Methods inherited from Node
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
#block ⇒ Object
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 |
#name ⇒ Object
The name of the node
391 392 393 |
# File 'lib/melbourne/ast/sends.rb', line 391 def name @name end |