On 2011ǯ1225 14:38, Nobuyoshi Nakada wrote:
> In 1.9.3 or later
>   module Kernel
>     def object_hexid
>       "0x"+[object_id<<1].pack("L>!").unpack("H*")[0]
>     end
>   end

I prefer to use sprintf() instead.