Sha256: 3aa7fe13f09ed09361fcfcd96506324ebf76814452ef66bea4d24b92350e9f5b
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 Bytes
Contents
module Kashi module Filterable def target?(website_name) unless @options[:includes].empty? unless @options[:includes].include?(website_name) Kashi.logger.debug("skip website_name(with include-names option) #{website_name}") return false end end unless @options[:excludes].empty? if @options[:excludes].any? { |regex| website_name =~ regex } Kashi.logger.debug("skip website_name(with exclude-names option) #{website_name}") return false end end true end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
kashi-0.1.4 | lib/kashi/filterable.rb |
kashi-0.1.3 | lib/kashi/filterable.rb |
kashi-0.1.2 | lib/kashi/filterable.rb |
kashi-0.1.1 | lib/kashi/filterable.rb |
kashi-0.1.0 | lib/kashi/filterable.rb |