# File lib/v8/conversion/class.rb, line 49 def construct(cls) context.link cls.new(*to_args), This() end
# File lib/v8/conversion/class.rb, line 53 def context V8::Context.current end
# File lib/v8/conversion/class.rb, line 43 def link external = self[0] This().SetHiddenValue("rr::implementation", external) context.link external.Value(), This() end
# File lib/v8/conversion/class.rb, line 39 def linkage_call? self.Length() == 1 && self[0].IsExternal() end
# File lib/v8/conversion/class.rb, line 57 def to_args args = ::Array.new(Length()) 0.upto(args.length - 1) do |i| args[i] = self[i] end return args end