<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pkgsrc/devel/ruby-rbx-require-relative, branch pkgsrc_2012Q2</title>
<subtitle>[no description]</subtitle>
<id>https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2012Q2</id>
<link rel='self' href='https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2012Q2'/>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/'/>
<updated>2011-06-19T10:32:17Z</updated>
<entry>
<title>Import ruby18-rbx-require-relative pacakge version 0.0.5.</title>
<updated>2011-06-19T10:32:17Z</updated>
<author>
<name>taca</name>
<email>taca</email>
</author>
<published>2011-06-19T10:32:17Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=848c3c339a40c763dbe297391da11c81b206cf79'/>
<id>urn:sha1:848c3c339a40c763dbe297391da11c81b206cf79</id>
<content type='text'>
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.

</content>
</entry>
</feed>
