module V8::Conversion::Code

Public Instance Methods

to_template() click to toggle source
# File lib/v8/conversion/code.rb, line 11
def to_template
  weakcell(:template) {V8::C::FunctionTemplate::New(InvocationHandler.new(self))}
end
to_v8() click to toggle source
# File lib/v8/conversion/code.rb, line 5
def to_v8
  fn = to_template.GetFunction()
  V8::Context.link self, fn
  return fn
end