Path to this page:
Next | Query returned 3 messages, browsing 1 to 10 | previous
CVS Commit History:
2015-02-04 14:56:29 by Takahiro Kambe | Files touched by this commit (4) | |
Log message:
Remove ruby-rbx-require-relative package which was required by
ruby-linecache package only.
|
2013-02-11 03:56:33 by Takahiro Kambe | Files touched by this commit (2) |
Log message:
Update ruby-rbx-require-relative to 0.0.9.
Support not only Ruby 1.8.7 but newer versions.
|
2011-06-19 12:32:17 by Takahiro Kambe | Files touched by this commit (4) | |
Log message:
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.
|
Next | Query returned 3 messages, browsing 1 to 10 | previous