uncutstone
5/9/2006 12:25:00 AM
I got different object_id from different method call, please see the
code below
a = Myclass.new("mike")
p a
p a.to_s
p a.object_id
Following is result:
#<Myclass:0x27a9584 @name="mike">
"#<Myclass:0x27a9584>"
20794050
Acctually hexadecimal 0x27a9584 is 2 times of decimal 20794050.
What this means? which one is the real object_id?
Thanks.