Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created May 18, 2022 09:41
Show Gist options
  • Save denisdefreyne/88e8bd54e976d3aa6700879bef76ec4d to your computer and use it in GitHub Desktop.
Save denisdefreyne/88e8bd54e976d3aa6700879bef76ec4d to your computer and use it in GitHub Desktop.
bin_ruby = Path.new("bin", "ruby")
var_log = Path.new("var", "log")
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