From: avdi@... Date: 2014-03-12T10:58:18+00:00 Subject: [ruby-core:61434] [CommonRuby - Feature #9625] Define `Pathname#/` to append to the path Issue #9625 has been updated by Avdi Grimm. Didn't this exist once and was later taken out? I have a dim (possibly false) memory of this. -- Avdi Grimm http://avdi.org On Mar 12, 2014 5:12 AM, wrote: > Issue #9625 has been reported by Alexey Muranov. > > ---------------------------------------- > Feature #9625: Define `Pathname#/` to append to the path > https://bugs.ruby-lang.org/issues/9625 > > * Author: Alexey Muranov > * Status: Open > * Priority: Normal > * Assignee: > * Category: > * Target version: > ---------------------------------------- > How about borrowing this definition from *Homebrew* project: > > class Pathname > def / that > join that.to_s > end > end > > Looks nice to me. > > > > -- > http://bugs.ruby-lang.org/ > ---------------------------------------- Feature #9625: Define `Pathname#/` to append to the path https://bugs.ruby-lang.org/issues/9625#change-45737 * Author: Alexey Muranov * Status: Open * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- How about borrowing this definition from *Homebrew* project: class Pathname def / that join that.to_s end end Looks nice to me. -- http://bugs.ruby-lang.org/