Class: Filtering::MatchRegex
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
-
#initialize(regex) ⇒ MatchRegex
constructor
A new instance of MatchRegex.
Methods inherited from Filter
Constructor Details
#initialize(regex) ⇒ MatchRegex
Returns a new instance of MatchRegex.
65 66 67 68 69 70 |
# File 'lib/file_filter.rb', line 65 def initialize regex @predicates = [] @predicates << proc do |path| path.match(regex) ? true : false end end |