Module: DevSuite::Utils::PathMatcher

Defined in:
lib/dev_suite/utils/path_matcher.rb,
lib/dev_suite/utils/path_matcher/matcher.rb,
lib/dev_suite/utils/path_matcher/pattern.rb,
lib/dev_suite/utils/path_matcher/path_matcher.rb

Defined Under Namespace

Classes: Matcher, Pattern

Class Method Summary collapse

Class Method Details

.match?(path, includes: [], excludes: []) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
# File 'lib/dev_suite/utils/path_matcher/path_matcher.rb', line 10

def match?(path, includes: [], excludes: [])
  matcher = Matcher.new(includes: includes, excludes: excludes)
  matcher.match?(path)
end