Class: Dizby::IdConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/dizby/converter/simple.rb

Class Method Summary collapse

Class Method Details

.to_id(obj)


10
11
12
# File 'lib/dizby/converter/simple.rb', line 10

def self.to_id(obj)
  obj.__id__
end

.to_obj(ref)


6
7
8
# File 'lib/dizby/converter/simple.rb', line 6

def self.to_obj(ref)
  ObjectSpace._id2ref(ref)
end