Sha256: fcb698cdff3963eccea726a9ee76ea0528315c72862b23c4469409a1395a7a8c

Contents?: true

Size: 310 Bytes

Versions: 6

Compression:

Stored size: 310 Bytes

Contents

module Applb
  module Filterable
    def target?(lb_name)
      unless @options[:includes].empty?
        return @options[:includes].include?(lb_name)
      end
      unless @options[:excludes].empty?
        return !@options[:excludes].any? { |regex| lb_name =~ regex }
      end
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
applb-0.1.5.beta1 lib/applb/filterable.rb
applb-0.1.4 lib/applb/filterable.rb
applb-0.1.3 lib/applb/filterable.rb
applb-0.1.2 lib/applb/filterable.rb
applb-0.1.1 lib/applb/filterable.rb
applb-0.1.0 lib/applb/filterable.rb