Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • singleton.rb

Parent

Class/Module Index [+]

Quicksearch

Object

Constants

Yup

Public Instance Methods

num_of_instances(klass) click to toggle source
 
               # File singleton.rb, line 142
def num_of_instances(klass)
    "#{ObjectSpace.each_object(klass){}} #{klass} instance(s)"
end