Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/hexoid.rb
Instance Method Summary collapse
- #hex_object_id ⇒ Object (also: #hexoid)
Instance Method Details
#hex_object_id ⇒ Object Also known as: hexoid
4 5 6 7 |
# File 'lib/hexoid.rb', line 4 def hex_object_id prefix = RUBY_VERSION >= '1.9' ? '0x00000' : '0x' "%s%x" % [prefix, (self.object_id.abs << 1)] end |