class CodeTools::AST::RangeExclude

Public Class Methods

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

Public Instance Methods

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

  g.push_cpath_top
  g.find_const :Range
  g.send :allocate, 0, true
  g.dup
  @start.bytecode(g)
  @finish.bytecode(g)
  g.push_true
  g.send :initialize, 3, true
  g.pop
end
to_sexp() click to toggle source
# File lib/rubinius/code/ast/literals.rb, line 347
def to_sexp
  [:dot3, @start.to_sexp, @finish.to_sexp]
end