class CodeTools::AST::DynamicRegex

Public Class Methods

new(line, str, array, flags) click to toggle source
Calls superclass method CodeTools::AST::DynamicString::new
# File lib/rubinius/code/ast/literals.rb, line 575
def initialize(line, str, array, flags)
  super line, str, array
  @options = flags || 0
end

Public Instance Methods

bytecode(g) click to toggle source
Calls superclass method CodeTools::AST::DynamicString#bytecode
# File lib/rubinius/code/ast/literals.rb, line 580
def bytecode(g)
  g.push_cpath_top
  g.find_const :Regexp
  super(g)
  g.push_int @options
  g.send :new, 2
end
sexp_name() click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 588
def sexp_name
  :dregx
end
to_sexp() click to toggle source
Calls superclass method CodeTools::AST::DynamicString#to_sexp
# File lib/rubinius/code/ast/literals.rb, line 592
def to_sexp
  sexp = super
  sexp << @options if @options != 0
  sexp
end