--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Mine:
def locate(file)
extensions = [".rb",".so",".o",".dll"]
$:.each do |dir|
path = dir + "/" + file
if File.exist? path
puts "require '#{file}' => #{path}"
break
else
extensions.each do |ext|
if File.exist? path + ext
puts "require '#{file}' => #{path + ext}"
break
end
end
end
end
end
module Kernel
alias old_require require
def require(string)
locate string
old_require string
end
end
ARGV.each do |file|
locate file if file
end
--
Fred O. Phillips
http://fophillips.org
BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41
--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAki661cACgkQ5PeHTxVFnUHqoQCeNt1oiw8SAzar+ZLFD/56ywDl
odoAniMLD/9GIxBiC9SMeoc/qdpvIfhs
3w
-----END PGP SIGNATURE-----
--AhhlLboLdkugWU4S--