Module: V8::Conversion::Fixnum

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

Instance Method Summary collapse

Instance Method Details

#to_rubyObject



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

def to_ruby
  self
end

#to_v8Object



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

def to_v8
  self.to_f.to_v8
end