Created
May 18, 2022 09:41
-
-
Save denisdefreyne/5003b1198a2eba1148c7d2193d0c10ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PathPattern | |
def initialize(string) | |
@string = string | |
end | |
def ===(other) | |
File.fnmatch(@string, other) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment