Module: Dumper::Utility::ObjectFinder

Included in:
Database::Base, Stack
Defined in:
lib/dumper/utility/object_finder.rb

Instance Method Summary collapse

Instance Method Details

#find_instance_in_object_space(klass) ⇒ Object



4
5
6
# File 'lib/dumper/utility/object_finder.rb', line 4

def find_instance_in_object_space(klass)
  ObjectSpace.each_object(klass).first
end