WatTF? – Jim Murphy

{It’s Safer to be Risky}

WatTF? – Jim Murphy header image 2

Ruby Smells II

June 26th, 2008 · No Comments

OK This on is a serious PIMA.  Why doesn’t ruby’s require involve the requiring files directory int he LOAD_PATH

1 require File.expand_path(File.dirname(__FILE__) + '/../foo')

You see this all the time at the top of Ruby source files? This is the Ruby Way?

I would expect to write:

1 require "../foo"

and have require – try matching against the requiring files directory first, then delegate to the LOAD_PATH array.

Help me see the light.

Bookmark and Share

Tags: Uncategorized

Comments

    Leave a reply

    Click here to close

    Add a Comment