Module: V8::Conversion::Hash

Defined in:
lib/v8/conversion/hash.rb

Instance Method Summary collapse

Instance Method Details

#to_v8Object


3
4
5
6
7
8
9
# File 'lib/v8/conversion/hash.rb', line 3

def to_v8
  object = V8::Object.new
  each do |key, value|
    object[key] = value
  end
  return object.to_v8
end