there are no integers in Ruby, only Fixnum and Bignum.
The conversion is automatical.
Matz, Ruby’s creator, says that you should use these without
caring about their internal representation.
You can find some detail on this website:
If you want to know how many bytes are used to represent a
number, you can use
puts 1.size => 4 bytes on my machine
puts 1.class => Fixnum
puts (23000).size => 376 bytes on my machine.
puts (23000).class => Bignum