Sha256: bd968baa056fad1b6bbe480d050f4fcd7cd5543f48658ed1fae5b623d35bc707

Contents?: true

Size: 672 Bytes

Versions: 25

Compression:

Stored size: 672 Bytes

Contents

class V8::Conversion
  include Fundamental
  include Identity

  def to_ruby(v8_object)
    super v8_object
  end

  def to_v8(ruby_object)
    super ruby_object
  end
end

for type in [TrueClass, FalseClass, NilClass, Float] do
  type.class_eval do
    include V8::Conversion::Primitive
  end
end

for type in [Class, Object, Array, Hash, String, Symbol, Time, Proc, Method, Fixnum] do
  type.class_eval do
    include V8::Conversion.const_get(type.name)
  end
end

class UnboundMethod
  include V8::Conversion::Method
end

for type in [:Object, :String, :Date] do
  V8::C::const_get(type).class_eval do
    include V8::Conversion::const_get("Native#{type}")
  end
end

Version data entries

25 entries across 25 versions & 8 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/lib/v8/conversion.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/lib/v8/conversion.rb
therubyracer-xcode-0.12.3 lib/v8/conversion.rb
therubyracer-xcode-0.12.2 lib/v8/conversion.rb
therubyracer-tmpfork-0.12.2 lib/v8/conversion.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb
therubyracer-0.12.2 lib/v8/conversion.rb
therubyracer-0.12.1 lib/v8/conversion.rb
therubyracer-discourse-0.12.0 lib/v8/conversion.rb
therubyracer-0.12.0 lib/v8/conversion.rb
therubyracer-0.11.4 lib/v8/conversion.rb
therubyracer-0.11.3 lib/v8/conversion.rb
therubyracer-0.11.2 lib/v8/conversion.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/lib/v8/conversion.rb
therubyracer-0.11.1 lib/v8/conversion.rb
therubyracer-0.11.1beta1 lib/v8/conversion.rb
therubyracer-0.11.0 lib/v8/conversion.rb
therubyracer-0.11.0beta8-x86-freebsd-9 lib/v8/conversion.rb
therubyracer-0.11.0beta8-x86_64-linux lib/v8/conversion.rb
therubyracer-0.11.0beta8-x86-linux lib/v8/conversion.rb