Actions
Feature #8098
closedAdd __DIR__ to compliment __FILE__
Status:
Rejected
Assignee:
-
Target version:
-
Description
There should be a DIR constant to compliment FILE.
Updated by Anonymous over 11 years 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
Updated by drbrain (Eric Hodel) over 11 years ago
- Status changed from Open to Rejected
See #3346, in particular https://bugs.ruby-lang.org/issues/3346#note-17
Updated by postmodern (Hal Brodigan) almost 11 years ago
I concur with Charlie Somerville. It does seem asymetrical that there is a __FILE__
constant, but no __file__
method.
Actions
Like0
Like0Like0Like0