Fixnum   object_id
0            1
1            3
2            5

-1          -1
-2          -3


so the question is...  which objects have the object_id 2, 4, 6, and -2,
-4, etc?




irb(main):041:0> a = 0
=> 0
irb(main):042:0> a.object_id
=> 1

irb(main):043:0> a = 1
=> 1
irb(main):044:0> a.object_id
=> 3

irb(main):045:0> a = 2
=> 2
irb(main):046:0> a.object_id
=> 5

irb(main):047:0> a = -1
=> -1
irb(main):048:0> a.object_id
=> -1

irb(main):049:0> a = -2
=> -2
irb(main):050:0> a.object_id
=> -3
-- 
Posted via http://www.ruby-forum.com/.