Sha256: 8fb729a9fa75fe6d506ac1cf2853875328d8c41088b45c5e217894100fc1bf3a

Contents?: true

Size: 327 Bytes

Versions: 37

Compression:

Stored size: 327 Bytes

Contents

class V8::Conversion
  module Reference

    def self.construct!(object)
      context = V8::Context.current
      constructor = context.to_v8(object.class)
      reference = constructor.NewInstance([V8::C::External::New(object)])
      return reference
    end

    def to_v8
      Reference.construct! self
    end

  end
end

Version data entries

37 entries across 37 versions & 8 rubygems

Version Path
therubyracer-0.11.0beta8-x86-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta8 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta7-x86_64-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta7-x86-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta7-x86_64-darwin-10 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta7 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta6-x86-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta6-x86_64-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta6 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta5-x86-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta5 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta5-x86_64-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta4 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta3 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta2-x86_64-linux lib/v8/conversion/reference.rb
therubyracer-0.11.0beta2 lib/v8/conversion/reference.rb
therubyracer-0.11.0beta1 lib/v8/conversion/reference.rb