method
_all
v2_2_9 -
Show latest stable
- Class:
Gem::Specification
_all()public
No documentation available.
# File lib/rubygems/specification.rb, line 704
def self._all # :nodoc:
unless defined?(@@all) && @@all then
@@all = stubs.map(&:to_spec)
# After a reset, make sure already loaded specs
# are still marked as activated.
specs = {}
Gem.loaded_specs.each_value{|s| specs[s] = true}
@@all.each{|s| s.activated = true if specs[s]}
end
@@all
end