lib/yard/lib/yard/cli/yri.rb
# Adds all RubyGems yardoc files to search paths
# @return [void]
Adds all RubyGems yardoc files to search paths
Adds all RubyGems yardoc files to search paths
def add_gem_paths
        require 'rubygems'
        gem_paths = []
        Gem.source_index.find_name('').each do |spec|
          if yfile = Registry.yardoc_file_for_gem(spec.name)
            if spec.name =~ /^yard-doc-/
              gem_paths.unshift(yfile)
            else
              gem_paths.push(yfile)
            end
          end
        end
        @search_paths += gem_paths
      rescue LoadError
      end
def add_gem_paths require 'rubygems' gem_paths = [ ] Gem . source_index . find_name ( '' ) . each do | spec | if yfile = Registry . yardoc_file_for_gem ( spec . name ) if spec . name =~ / ^yard-doc- / gem_paths . unshift ( yfile ) else gem_paths . push ( yfile ) end end end @search_paths += gem_paths rescue LoadError end
Adds all RubyGems yardoc files to search paths
Adds all RubyGems yardoc files to search paths
None
void