Class: Class

Inherits:
Object show all
Includes:
Sing
Defined in:
lib/refinery/core_ext/class.rb

Instance Method Summary collapse

Methods included from Sing

#singleton?

Instance Method Details

#instancesObject

Returns a list of all instances of this class



9
10
11
# File 'lib/refinery/core_ext/class.rb', line 9

def instances
  ObjectSpace.each_object(self).to_a
end