Sha256: 6af29c7cecb00a59af729eb96afad957ba76e9c645c12c910dbc45e4ec79e2b3
Contents?: true
Size: 289 Bytes
Versions: 2
Compression:
Stored size: 289 Bytes
Contents
module Goodcheck class Glob attr_reader :pattern attr_reader :encoding def initialize(pattern:, encoding:) @pattern = pattern @encoding = encoding end def test(path) path.fnmatch?(pattern, File::FNM_PATHNAME | File::FNM_EXTGLOB) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
goodcheck-1.7.1 | lib/goodcheck/glob.rb |
goodcheck-1.7.0 | lib/goodcheck/glob.rb |