class V8::Portal::FunctionAdapter

def function

def function
  @template.GetFunction()
end

def initialize(portal, code)

def initialize(portal, code)
  @portal = portal
  @caller = code.respond_to?(:call) ? Call.new(portal) : BindAndCall.new(portal)
  @code = code
  @template = V8::C::FunctionTemplate::New(@caller, @code)
end