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_fileBut 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/