From: Trans Date: 2007-09-10T08:39:06+09:00 Subject: Re: DAH, using the 'id' property on an object. Get around ruby On Sep 9, 4:27 pm, Aaron Smith wrote: > DAH, I keep running into issues with using the ID property on an object. > What is the correct way to use the ID property on an object, without > pissing Ruby off? In my app I need to be able to use the id property on > any object. Mostly Object/OpenStruct's. I've had a couple things working > but then I run into a situation where it doesn't work correctly. Any > ideas? Level 1: obj.object_id Level 2: obj.send(:object_id) Level 3: Object.instance_method(:object_id).bind(obj).call Voyage to the depth you require. T.