pathname
pathname copied to clipboard
use delete_prefix instead of sub in find method
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.