lib/goodcheck/glob.rb in goodcheck-1.6.0 vs lib/goodcheck/glob.rb in goodcheck-1.7.0

- old
+ new

@@ -5,7 +5,11 @@ def initialize(pattern:, encoding:) @pattern = pattern @encoding = encoding end + + def test(path) + path.fnmatch?(pattern, File::FNM_PATHNAME | File::FNM_EXTGLOB) + end end end