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