Skip to content

Commit

Permalink
Update documentation of suggest_gems_from_name
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Jan 1, 2011
1 parent fda095d commit 97ac3d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rubygems/spec_fetcher.rb
Expand Up @@ -184,10 +184,8 @@ def legacy_repos
end

##
# Suggests a gem based on the supplied +gem_name+. Returns a string
# of the gem name if an approximate match can be found or nil
# otherwise. NOTE: for performance reasons only gems which exactly
# match the first character of +gem_name+ are considered.
# Suggests gems based on the supplied +gem_name+. Returns an array of
# alternative gem names.

def suggest_gems_from_name gem_name
gem_name = gem_name.downcase
Expand Down

0 comments on commit 97ac3d7

Please sign in to comment.