Methods
- #
- A
- E
- I
- M
- N
- P
- R
- S
Constants
Tuple | = | Struct.new(:spec, :source) |
Attributes
[R] | set |
Class Public methods
new()
Link
Instance Public methods
<<(o)
Link
# File lib/rubygems/available_set.rb, line 17 def <<(o) case o when Gem::AvailableSet s = o.set when Array s = o.map do |sp,so| if !sp.kind_of?(Gem::Specification) or !so.kind_of?(Gem::Source) raise TypeError, "Array must be in [[spec, source], ...] form" end Tuple.new(sp,so) end else raise TypeError, "must be a Gem::AvailableSet" end @set += s @sorted = nil self end
add(spec, source)
Link
all_specs()
Link
empty?()
Link
inject_into_list(dep_list)
Link
match_platform!()
Link
pick_best!()
Link
remove_installed!(dep)
Link
# File lib/rubygems/available_set.rb, line 77 def remove_installed!(dep) @set.reject! do |t| # already locally installed Gem::Specification.any? do |installed_spec| dep.name == installed_spec.name and dep.requirement.satisfied_by? installed_spec.version end end @sorted = nil self end
size()
Link
sorted()
Link