Forum: Ruby-core Define `Pathname#/` to append to the path

45196398e9685000d195ec626d477f0e?d=identicon&s=25 Thomas Sawyer (7rans)
on 2014-04-11 21:31
(Received via mailing list)
Issue #9625 has been updated by Thomas Sawyer.

+1 This is a no-brainer.

Feature #9625: Define `Pathname#/` to append to the path

* 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

Looks nice to me.
This topic is locked and can not be replied to.