Project

General

Profile

Actions

Feature #9625

closed

Define `Pathname#/` to append to the path

Added by alexeymuranov (Alexey Muranov) over 10 years ago. Updated almost 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:61432]

Description

How about borrowing this definition from Homebrew project:

class Pathname
  def / that
    join that.to_s
  end
end

Looks nice to me.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0