Module: V8::Conversion::Integer

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

Instance Method Summary collapse

Instance Method Details

#to_rubyObject



3
4
5
# File 'lib/v8/conversion/integer.rb', line 3

def to_ruby
  self
end

#to_v8Object



7
8
9
# File 'lib/v8/conversion/integer.rb', line 7

def to_v8
  self.to_f.to_v8
end