diff options
author | taca <taca@pkgsrc.org> | 2011-06-19 10:32:17 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2011-06-19 10:32:17 +0000 |
commit | 38e2f961655b1e42831855b3af48748376daf5da (patch) | |
tree | c8fd890997f46a86611770c6821795c3565070f1 /net/nemesis/PLIST | |
parent | 972397e911b8d7fff8f8a6ced2522c960e585c88 (diff) | |
download | pkgsrc-38e2f961655b1e42831855b3af48748376daf5da.tar.gz |
Import ruby18-rbx-require-relative pacakge version 0.0.5.
It is required by new ruby-linecache package.
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.
Diffstat (limited to 'net/nemesis/PLIST')
0 files changed, 0 insertions, 0 deletions