Sha256: d2919e9f27ecda37aa9629658eb5f1faf9a1af7e03684f9f7b8b992b8950c50e

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

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 'rubygems'; require 'require_relative'
require_relative './lib/foo' 
absolute_path = RequireRelative.abs_file

But why *abs_file*? Well, recall that ==__FILE__== does not give an absolute path. So if you have chdir'd before using ==__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/


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbx-require-relative-0.0.4-universal-rubinius-1.2 README.textile
rbx-require-relative-0.0.3 README.textile
rbx-require-relative-0.0.2 README.textile