Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created May 18, 2022 09:41
Show Gist options
  • Save denisdefreyne/5003b1198a2eba1148c7d2193d0c10ff to your computer and use it in GitHub Desktop.
Save denisdefreyne/5003b1198a2eba1148c7d2193d0c10ff to your computer and use it in GitHub Desktop.
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