class CodeTools::AST::SendKernelMethod

Emits “safe” names for certain fundamental core library methods

Constants

Arguments
Methods

Public Class Methods

match?(line, receiver, name, arguments, privately) click to toggle source
# File lib/rubinius/code/ast/transforms.rb, line 311
def self.match?(line, receiver, name, arguments, privately)
  return false unless rename = Methods[name]
  if match_arguments? arguments, Arguments[name]
    new line, receiver, rename, arguments, privately
  end
end

Public Instance Methods

bytecode(g) click to toggle source
# File lib/rubinius/code/ast/transforms.rb, line 318
def bytecode(g)
  pos(g)
  @receiver.bytecode(g)
  @arguments.bytecode(g)

  g.send @name, @arguments.size, @privately
end