class CodeTools::AST::StringLiteral

Attributes

string[RW]

Public Class Methods

new(line, str) click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 428
def initialize(line, str)
  @line = line
  @string = str
end

Public Instance Methods

bytecode(g) click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 433
def bytecode(g)
  pos(g)

  g.push_literal @string
  g.string_dup
end
defined(g) click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 440
def defined(g)
  g.push_literal "expression"
end
to_sexp() click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 444
def to_sexp
  [:str, @string]
end