Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/benelux/mixins.rb
Instance Method Summary collapse
- #hex_object_id ⇒ Object (also: #hexoid)
Instance Method Details
#hex_object_id ⇒ Object Also known as: hexoid
5 6 7 8 |
# 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 |