aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/source_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/source_list.rb')
-rw-r--r--lib/rubygems/source_list.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/source_list.rb b/lib/rubygems/source_list.rb
index 66ce4d57ed..83b689f78e 100644
--- a/lib/rubygems/source_list.rb
+++ b/lib/rubygems/source_list.rb
@@ -105,7 +105,7 @@ class Gem::SourceList
@sources.empty?
end
- def == other # :nodoc:
+ def ==(other) # :nodoc:
to_a == other
end
@@ -140,7 +140,7 @@ class Gem::SourceList
##
# Deletes +source+ from the source list which may be a Gem::Source or a URI.
- def delete source
+ def delete(source)
if source.kind_of? Gem::Source
@sources.delete source
else