Define `Pathname#/` to append to the path
How about borrowing this definition from Homebrew project:
class Pathname def / that join that.to_s end end
Looks nice to me.
Updated by avdi (Avdi Grimm) over 6 years ago
Didn't this exist once and was later taken out? I have a dim (possibly
false) memory of this.
Updated by akr (Akira Tanaka) over 6 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset ruby-trunk:r45826.
- ext/pathname/lib/pathname.rb (Pathname#/): Aliased to Pathname#+. Suggested by Alexey Muranov. [ruby-core:61432] [Feature #9625]
Updated by Sweely (Nabil Alaoui) about 1 year ago
Any updates on this? I see it's status is Closed, but I'm still awaiting a final update?
Pet Portrait Artist
https://sketchgrowl.com (for contact details, I'm a pet portrait artist when I'm not coding lol)
CS Student - Chalmers University of Technology