Skip to content

Commit

Permalink
textile hacking.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Sep 22, 2010
1 parent 4b51fc7 commit 98e6b9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.textile
Expand Up @@ -2,9 +2,10 @@ h2. Ruby 1.9's relative_relative for Rubinus 1.0.1 .. 1.1

Here we add in Module RequireRelative method: *require_relative*, and *abs_file*. Example:

bc. require_relative './lib/foo'
bc. require 'rubygems'; require 'require_relative'
require_relative './lib/foo'

But why *abs_file*?. Well, recall that *__FILE__* does not give an absolute path. So if you have chdir'd before useing *__FILE__*, you might not be able to retrieve the full path.
But why *abs_file*?. Well, recall that ==__FILE__== does not give an absolute path. So if you have chdir'd before useing ==__FILE__==, you might not be able to retrieve the full path.

The latest version is at "http://github.com/rocky/rbx-require-relative/"://github.com/rocky/rbx-require-relative/

Expand Down

0 comments on commit 98e6b9b

Please sign in to comment.