method

_all

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: Specification
_all() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/specification.rb, line 738
  def self._all # :nodoc:
    unless defined?(@@all) && @@all then
      @@all = stubs.map(&:to_spec)
      if @@all.any?(&:nil?) # TODO: remove once we're happy
        raise "pid: #{$$} nil spec! included in #{stubs.inspect}"
      end

      # 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
Register or log in to add new notes.