Created
May 18, 2022 09:41
-
-
Save denisdefreyne/88e8bd54e976d3aa6700879bef76ec4d 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
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