Module: BaseFilter
- Defined in:
- lib/base.rb
Instance Method Summary collapse
Instance Method Details
#should_filter?(target) ⇒ Boolean
2 3 4 5 6 7 |
# File 'lib/base.rb', line 2 def should_filter?(target) return false if target.nil? return true if @filter_empty && target.strip.empty? @action == (@matcher.matches?(target) ? :blacklist : :whitelist) end |