This backports require_relative to Ruby 1.8.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 14 commits behind steveklabnik:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
README.md
Rakefile
require_relative.gemspec

README.md

require_relative

In Ruby 1.9.2, "." was removed from the $LOAD_PATH. require_relative was added to let you require files relative to your current directory.

This gem backports both of these features to earlier Rubies.

Usage

require 'rubygems'
require 'require_relative'

require 'foo' #=> LoadError
require_relative 'foo' #=> works!