Class: CodeTools::AST::MirrorConstant

Inherits:
Node
  • Object
show all
Defined in:
lib/rubinius/code/ast/constants.rb

Instance Attribute Summary

Attributes inherited from Node

#line

Instance Method Summary collapse

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, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk

Constructor Details

#initialize(line) ⇒ MirrorConstant

Returns a new instance of MirrorConstant.



18
19
20
# File 'lib/rubinius/code/ast/constants.rb', line 18

def initialize(line)
  @line = line
end

Instance Method Details

#bytecode(g) ⇒ Object



22
23
24
25
# File 'lib/rubinius/code/ast/constants.rb', line 22

def bytecode(g)
  pos(g)
  g.push_mirror
end