Class Object

  1. lib/benelux/mixins.rb
Parent: Object

Methods

public instance

  1. hex_object_id
  2. hexoid

Public instance methods

hex_object_id ()
[show source]
   # File lib/benelux/mixins.rb, line 5
5:   def hex_object_id
6:     prefix = RUBY_VERSION >= '1.9' ? '0x00000' : '0x'
7:     "%s%x" % [prefix, (self.object_id.abs << 1)]
8:   end
hexoid ()

Alias for hex_object_id