[ruby-core:94744] [CommonRuby Feature#9625] Define `Pathname#/` to append to the path

From: nabil@...
Date: 2019-09-02 10:46:36 UTC
List: ruby-core #94744
Issue #9625 has been updated by Sweely (Nabil Alaoui).


Any updates on this? I see it's status is Closed, but I'm still awaiting a final update?

Nabil
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

----------------------------------------
Feature #9625: Define `Pathname#/` to append to the path
https://bugs.ruby-lang.org/issues/9625#change-81361

* Author: alexeymuranov (Alexey Muranov)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
How about borrowing this definition from *Homebrew* project:

    class Pathname
      def / that
        join that.to_s
      end
    end

Looks nice to me.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next