Method: Gem::SourceList#replace
- Defined in:
- lib/rubygems/source_list.rb
#replace(other) ⇒ Object
Replaces this SourceList with the sources in other See #<< for acceptable items in other.
70 71 72 73 74 75 76 77 78 |
# File 'lib/rubygems/source_list.rb', line 70 def replace(other) clear other.each do |x| self << x end self end |