ruby-win32/lib/ruby/site_ruby/1.8/rubygems.rb
def each_load_path(partials)
      partials.each do |gp|
        base = File.basename(gp)
        specfn = File.join(dir, "specifications", base + ".gemspec")
        if File.exist?(specfn)
          spec = eval(File.read(specfn))
          spec.require_paths.each do |rp|
            yield(File.join(gp, rp))
          end
        else
          filename = File.join(gp, 'lib')
          yield(filename) if File.exist?(filename)
        end
      end
    end
# Expand each partial gem path with each of the required paths
# specified in the Gem spec.  Each expanded path is yielded.
Expand each partial gem path with each of the required paths
specified in the Gem spec.  Each expanded path is yielded.
Expand each partial gem path with each of the required paths specified in the Gem spec . Each expanded path is yielded .
def each_load_path(partials)
      partials.each do |gp|
        base = File.basename(gp)
        specfn = File.join(dir, "specifications", base + ".gemspec")
        if File.exist?(specfn)
          spec = eval(File.read(specfn))
          spec.require_paths.each do |rp|
            yield(File.join(gp, rp))
          end
        else
          filename = File.join(gp, 'lib')
          yield(filename) if File.exist?(filename)
        end
      end
    end
def each_load_path ( partials ) partials . each do | gp | base = File . basename ( gp ) specfn = File . join ( dir , "specifications" , base + ".gemspec" ) if File . exist? ( specfn ) spec = eval ( File . read ( specfn ) ) spec . require_paths . each do | rp | yield ( File . join ( gp , rp ) ) end else filename = File . join ( gp , 'lib' ) yield ( filename ) if File . exist? ( filename ) end end end
Expand each partial gem path with each of the required paths
specified in the Gem spec.
Expand each partial gem path with each of the required paths specified in the Gem spec .
partials