Sha256: 0cdb5161df38bd3a1abad8453a3b0a25487a9f85aaf6a99329f02bb3f0bc2c8e
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
module Extlib module LocalObjectSpace def self.extended(klass) (class << klass; self; end).send :attr_accessor, :hook_scopes klass.hook_scopes = [] end def object_by_id(object_id) self.hook_scopes.detect {|object| object.object_id == object_id} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
extlib-0.9.16 | lib/extlib/local_object_space.rb |
extlib-0.9.15 | lib/extlib/local_object_space.rb |