non-raster files

License: BSD-2-Clause

Language: Ruby

Ruby 1.9’s relative_relative for Rubinus and MRI 1.8

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

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

Project Statistics

Sourcerank 8
Repository Size 122 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 9
Last updated

Top Contributors See all

R. Bernstein

Packages Referencing this Repo

Ruby 1.9's require_relative for Rubinius and MRI 1.8. We also add abs_path which is like __FILE...
Latest release 0.0.9 - Updated

Recent Tags See all

release-0.0.9 February 28, 2012
release-0.0.8 February 28, 2012
release-0.0.7 February 27, 2012
release-0.0.6 January 23, 2012
release-0.0.5 June 12, 2011
release-0.0.4 April 22, 2011
release-0.0.3 September 23, 2010
release-0.0.2 September 22, 2010
release-0.0.1 September 22, 2010

Something wrong with this page? Make a suggestion

Last synced: 2019-09-02 07:42:52 UTC

Login to resync this repository