Re: Issue related to class initialization and irb
- From: darren kirby <bulliver@xxxxxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 02:17:41 +0900
First off, thanks to Stefano, Chris, and Dan. inspect was what I was looking
for and I have it printing what I would like.
quoth the Dan Stevens (IAmAI):
Does anyone know why the value returned by Object#object_id is
different to the value returned by the 'new' method? Is one hex and
the other is not?
This is a follow-up question for me as well. Even when the object_id value is
represented in hex it does not match the default output. I guess the default
value is the object's address in memory or somesuch?
Looking through 'Object', 'Kernel', and a few others in the Pickaxe book, I
can find no relevant method (which doesn't mean it isn't there ;)). Is there
a way to get this value? Does it really matter or is it just cosmetic?
thanks,
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
.
- Follow-Ups:
- Re: Issue related to class initialization and irb
- From: Chris Shea
- Re: Issue related to class initialization and irb
- References:
- Issue related to class initialization and irb
- From: darren kirby
- Re: Issue related to class initialization and irb
- From: Chris Shea
- Re: Issue related to class initialization and irb
- From: Dan Stevens (IAmAI)
- Issue related to class initialization and irb
- Prev by Date: Re: Issue related to class initialization and irb
- Next by Date: Re: Issue related to class initialization and irb
- Previous by thread: Re: Issue related to class initialization and irb
- Next by thread: Re: Issue related to class initialization and irb
- Index(es):
Relevant Pages
|