Class: KeepUp::SkipFilter

Inherits:
Object
  • Object
show all
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

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