[ruby-core:32785] [Ruby-Feature#3942][Feedback] File.dirname(__FILE__) should be on $: by default

From: Shyouhei Urabe <redmine@...>
Date: 2010-10-14 10:56:39 UTC
List: ruby-core #32785
Issue #3942 has been updated by Shyouhei Urabe.

Status changed from Rejected to Feedback

> However, I still believe this issue is valid.

Why?  Be a bit more verbose please.  When you can use require_relative it is better than the normal require, because you do not have to worry about naming conflicts against a lib somewhere in your load path.  So far I see no reasons to pollute it by adding the file's directory.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3942

----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next