A Lock source wraps an installed gem's source and sorts before other sources during dependency resolution. This allows RubyGems to prefer gems from dependency lock files.
Methods
- F
- N
Attributes
| [R] | wrapped | The wrapped Gem::Source |
Class Public methods
new(source)
Link
Creates a new Lock source that wraps
source and moves it earlier in the sort list.
Source: show
# File lib/rubygems/source/lock.rb, line 17 def initialize source @wrapped = source end
Instance Public methods
fetch_spec(name_tuple)
Link
Delegates to the wrapped source's #fetch_spec method.
Source: show
# File lib/rubygems/source/lock.rb, line 39 def fetch_spec name_tuple @wrapped.fetch_spec name_tuple end