Class: RBS::Collection::Cleaner
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rbs/collection/cleaner.rb |
Class Method Summary
- .new(lockfile_path:) ⇒ Cleaner constructor
Instance Attribute Summary
- #lock readonly
Instance Method Summary
Constructor Details
.new(lockfile_path:) ⇒ Cleaner
Instance Attribute Details
#lock (readonly)
[ GitHub ]# File 'lib/rbs/collection/cleaner.rb', line 6
attr_reader :lock
Instance Method Details
#clean
[ GitHub ]
#needed?(gem_name, version) ⇒ Boolean
# File 'lib/rbs/collection/cleaner.rb', line 23
def needed?(gem_name, version) gem = lock.gem(gem_name) return false unless gem gem['version'] == version end