Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created May 18, 2022 09:41
Show Gist options
  • Save denisdefreyne/785b3804c84418ed6b4e7f44242b25c9 to your computer and use it in GitHub Desktop.
Save denisdefreyne/785b3804c84418ed6b4e7f44242b25c9 to your computer and use it in GitHub Desktop.
pattern = PathPattern.new("/bin/*")
pattern === "/bin/ruby" # => true
pattern === "/var/log" # => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment