Class: Gem::Comparator::Base
- Inherits:
-
Object
- Object
- Gem::Comparator::Base
- Includes:
- Report::Signs, Utils
- Defined in:
- lib/rubygems/comparator/base.rb
Direct Known Subclasses
DependencyComparator, FileListComparator, GemfileComparator, SpecComparator
Instance Attribute Summary collapse
-
#compares ⇒ Object
Returns the value of attribute compares.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
Compare Gem::Specification objects by default.
Constructor Details
#initialize ⇒ Base
Compare Gem::Specification objects by default
To override create your own initialize method and set expect(:packages) to expect Gem::Package objects.
18 19 20 |
# File 'lib/rubygems/comparator/base.rb', line 18 def initialize expect(:specs) end |
Instance Attribute Details
#compares ⇒ Object
Returns the value of attribute compares.
10 11 12 |
# File 'lib/rubygems/comparator/base.rb', line 10 def compares @compares end |