Sha256: bec0489394bc81dd6597b3b19b28154e6ba1c6de22774795fa5a7d927dec0f54
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
require 'haravan_theme/filters/blacklist' require 'haravan_theme/filters/whitelist' require 'haravan_theme/filters/command_input' module HaravanTheme class FileFilters def initialize(*filters) raise ArgumentError, "Must have at least one filter to apply" unless filters.length > 0 @filters = filters end def select(list) @filters.reduce(list) do |results, filter| filter.select(results) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
haravan_theme-0.0.26 | lib/haravan_theme/file_filters.rb |
haravan_theme-0.0.25 | lib/haravan_theme/file_filters.rb |