class CodeTools::AST::RescueSplat

Attributes

value[RW]

Public Class Methods

new(line, value) click to toggle source
# File lib/rubinius/code/ast/exceptions.rb, line 543
def initialize(line, value)
  @line = line
  @value = value
end

Public Instance Methods

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

  g.dup
  @value.bytecode(g)
  g.cast_array
  g.swap
  g.send :__rescue_match__, 1
  g.goto_if_true body
end
to_sexp() click to toggle source
# File lib/rubinius/code/ast/exceptions.rb, line 559
def to_sexp
  [:splat, @value.to_sexp]
end