Class: CodeTools::AST::ExecuteString

Inherits:
StringLiteral show all
Defined in:
lib/rubinius/code/ast/literals.rb

Instance Attribute Summary

Attributes inherited from StringLiteral

#string

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from StringLiteral

#defined, #initialize

Methods inherited from Node

#ascii_graph, #attributes, #children, #defined, #initialize, 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

This class inherits a constructor from CodeTools::AST::StringLiteral

Instance Method Details

#bytecode(g) ⇒ Object



627
628
629
630
631
632
633
# File 'lib/rubinius/code/ast/literals.rb', line 627

def bytecode(g)
  pos(g)

  g.push_self
  super(g)
  g.send :`, 1, true # ` (silly vim/emacs)
end

#to_sexpObject



635
636
637
# File 'lib/rubinius/code/ast/literals.rb', line 635

def to_sexp
  [:xstr, @string]
end