Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Gem::SourceList#prepend

prepend(obj)

Prepends obj to the beginning of the source list which may be a Gem::Source, Gem::URI or URI Moves obj to the beginning of the list if already present. String.

See also #include? #replace #first #to_a also in 4.0