Class: Treebis::DirAsHash::Blacklist
Defined Under Namespace
Modules: Matcher, MatcherFactory
Classes: EmptyMatcherClass, GlobNodeMatcher, GlobNodeMatcherDeep, MatcherWithTail, StringMatcher
Instance Method Summary
collapse
create_matcher
Instance Method Details
#include?(str) ⇒ Boolean
212
213
214
|
# File 'lib/treebis.rb', line 212
def include? str
@matchers.detect{ |x| x.include?(str) }
end
|
#submatcher(str) ⇒ Object
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
# File 'lib/treebis.rb', line 215
def submatcher str
these = []
@matchers.each do |m|
this = m.submatcher(str)
these.push(this) if this
end
ret =
if these.empty?
nil
else
Blacklist.new(these)
end
ret
end
|