ruby / pathname

Pathname represents the name of a file or directory on the filesystem, but not the file itself.
BSD 2-Clause "Simplified" License
26 stars 16 forks source link

basename_sub #23

Open akimd opened 1 year ago

akimd commented 1 year ago

Hi,

This is a very simple complement to sub and ext_sub. I believe basename_sub is more natural than sub, and in fact sub's example is actually pretty-much an example of basename_sub.

base_sub is shorter, but looking at the API I went for basename_sub. I might have been wrong.