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



596
597
598
599
600
601
602
# File 'lib/rubinius/code/ast/literals.rb', line 596

def bytecode(g)
  pos(g)

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

#to_sexpObject



604
605
606
# File 'lib/rubinius/code/ast/literals.rb', line 604

def to_sexp
  [:xstr, @string]
end