Class: Class
Instance Method Summary collapse
-
#instances ⇒ Object
Returns a list of all instances of this class.
Methods included from Sing
Instance Method Details
#instances ⇒ Object
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 |