class Object

Public Instance Methods

hex_object_id() click to toggle source
# File lib/benelux/mixins.rb, line 5
def hex_object_id
  prefix = RUBY_VERSION >= '1.9' ? '0x00000' : '0x'
  "%s%x" % [prefix, (self.object_id.abs << 1)]
end
Also aliased as: hexoid
hexoid()
Alias for: hex_object_id