--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Mine:

 def locate(file)
   extensions =3D [".rb",".so",".o",".dll"]
   $:.each do |dir|
     path =3D dir + "/" + file
     if File.exist? path
       puts "require '#{file}' =3D> #{path}"
       break
     else
       extensions.each do |ext|
         if File.exist? path + ext
           puts "require '#{file}' =3D> #{path + ext}"
           break
         end
       end
     end
   end
 end
=20
 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

--=20
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
=xm3w
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--

Mine:

 def locate(file)
   extensions =3D [".rb",".so",".o",".dll"]
   $:.each do |dir|
     path =3D dir + "/" + file
     if File.exist? path
       puts "require '#{file}' =3D> #{path}"
       break
     else
       extensions.each do |ext|
         if File.exist? path + ext
           puts "require '#{file}' =3D> #{path + ext}"
           break
         end
       end
     end
   end
 end
=20
 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

--=20
Fred O. Phillips
http://fophillips.org
BBC7 7572 755F 83E0 3209  504A E4F7 874F 1545 9D41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAki661cACgkQ5PeHTxVFnUHqoQCeNt1oiw8SAzar+ZLFD/56ywDl
odoAniMLD/9GIxBiC9SMeoc/qdpvIfhs
=xm3w
-----END PGP SIGNATURE-----