Feature #8098

Add __DIR__ to compliment __FILE__

Added by Hal Brodigan about 1 year ago. Updated 3 months ago.

[ruby-core:53427]
Status:Rejected
Priority:Normal
Assignee:-
Category:core
Target version:-

Description

There should be a DIR constant to compliment FILE.


Related issues

Duplicates ruby-trunk - Feature #3346: __DIR__ revisted Closed 05/26/2010

History

#1 Updated by Charlie Somerville about 1 year ago

=begin
IIRC (({DIR})) has already been shot down because of concerns that introducing a new keyword might break things.

However I would like to see a (({file})) method to complement (({dir})), (({method})), etc.
=end

#2 Updated by Eric Hodel about 1 year ago

  • Status changed from Open to Rejected

#3 Updated by Hal Brodigan 3 months ago

I concur with Charlie Somerville. It does seem asymetrical that there is a __FILE__ constant, but no __file__ method.

Also available in: Atom PDF