well, that depends on what you mean by "ruby";) In jruby, it's just a unique integer as far as I can tell.
Also, things like numbers are not a memory location. I forget all the details and Iβm sure that someone will give them to you.
irb(main):020:0> 1.object_id => 3 irb(main):021:0> (2-1).object_id => 3
jshen
source share