Class: CodeTools::AST::ZSuper
- Defined in:
- lib/rubinius/code/ast/sends.rb
Instance Attribute Summary
Attributes inherited from Super
Attributes inherited from SendWithArguments
Attributes inherited from Send
#block, #name, #privately, #receiver, #variable, #vcall_style
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(line) ⇒ ZSuper
constructor
A new instance of ZSuper.
- #to_sexp ⇒ Object
Methods inherited from Super
Methods inherited from SendWithArguments
Methods inherited from Send
#arguments_sexp, #check_local_reference, #defined, #receiver_sexp, #sexp_name, #value_defined
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
#initialize(line) ⇒ ZSuper
Returns a new instance of ZSuper.
1113 1114 1115 1116 |
# File 'lib/rubinius/code/ast/sends.rb', line 1113 def initialize(line) @line = line @block = nil end |
Instance Method Details
#bytecode(g) ⇒ Object
1118 1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'lib/rubinius/code/ast/sends.rb', line 1118 def bytecode(g) pos(g) @name = g.state.super.name if g.state.super? block_bytecode(g) g.zsuper @name end |
#to_sexp ⇒ Object
1128 1129 1130 |
# File 'lib/rubinius/code/ast/sends.rb', line 1128 def to_sexp [:zsuper] end |