From: "charliesome (Charlie Somerville)" Date: 2013-03-15T08:27:49+09:00 Subject: [ruby-core:53428] [ruby-trunk - Feature #8098] Add __DIR__ to compliment __FILE__ Issue #8098 has been updated by charliesome (Charlie Somerville). =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 ---------------------------------------- Feature #8098: Add __DIR__ to compliment __FILE__ https://bugs.ruby-lang.org/issues/8098#change-37614 Author: postmodern (Hal Brodigan) Status: Open Priority: Normal Assignee: Category: core Target version: There should be a __DIR__ constant to compliment __FILE__. -- http://bugs.ruby-lang.org/