Methods

Included Modules

Files

V8::Conversion::Class

Public Instance Methods

to_template() click to toggle source
# File lib/v8/conversion/class.rb, line 5
def to_template
  weakcell(:constructor) do
    template = V8::C::FunctionTemplate::New(Constructor.new(self))
    prototype = template.InstanceTemplate()
    prototype.SetNamedPropertyHandler(Get, Set)
    prototype.SetIndexedPropertyHandler(IGet, ISet)
    if self != ::Object && superclass != ::Object && superclass != ::Class
      template.Inherit(superclass.to_template)
    end
    template
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.