Class: KeepUp::SkipFilter
- Inherits:
-
Object
- Object
- KeepUp::SkipFilter
- Defined in:
- lib/keep_up/skip_filter.rb
Overview
Dependency filter that skips dependencies if their name is on the list of things to be skipped.
Instance Method Summary collapse
- #call(dep) ⇒ Object
-
#initialize(skip_list) ⇒ SkipFilter
constructor
A new instance of SkipFilter.
Constructor Details
#initialize(skip_list) ⇒ SkipFilter
Returns a new instance of SkipFilter.
7 8 9 |
# File 'lib/keep_up/skip_filter.rb', line 7 def initialize(skip_list) @skip_list = skip_list end |
Instance Method Details
#call(dep) ⇒ Object
11 12 13 |
# File 'lib/keep_up/skip_filter.rb', line 11 def call(dep) !@skip_list.include?(dep.name) end |