mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
17 lines
213 B
Ruby
17 lines
213 B
Ruby
|
class V8::Conversion
|
||
|
module Object
|
||
|
def to_v8
|
||
|
V8::C::Object::New()
|
||
|
end
|
||
|
|
||
|
def to_ruby
|
||
|
self
|
||
|
end
|
||
|
end
|
||
|
|
||
|
module NativeObject
|
||
|
def to_ruby
|
||
|
::V8::Object.new(self)
|
||
|
end
|
||
|
end
|
||
|
end
|