ruby / pathname

Pathname represents the name of a file or directory on the filesystem, but not the file itself.
Other
26 stars 16 forks source link

use delete_prefix instead of sub in find method #34

Closed toy closed 1 month ago

toy commented 10 months ago

delete_prefix with a string is easier to read than a regular expression also it should be faster. It is available since ruby 2.5 and the gem requires ruby 2.7.