Project

General

Profile

Bug #9996

document File.join returns a string

Added by soodesune (Mark Lorenz) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3p484 and 2.1.1
[ruby-core:63412]

Description

Duplicates: https://github.com/ruby/ruby/pull/646

The documented return from File.join is path. This patch changes it
to string to avoid confusion with Pathname#join, which returns a
Pathname object.


Files

Updated by soodesune (Mark Lorenz) about 6 years ago

I don't see a way for me to close this, but my pull request was merged as I was authoring the bug #9996.

This can be closed now.

Updated by hsbt (Hiroshi SHIBATA) about 6 years ago

  • Status changed from Open to Closed

Hi, Lorenz. Thanks for your patch.

I applied at r46620.

Also available in: Atom PDF