return Kgio::File for Kgio.tryopen
commitc8bd876fb5086e5b79299869b4c29f1f7f020b4d
authorEric Wong <normalperson@yhbt.net>
Sat, 14 May 2011 00:48:56 +0000 (13 17:48 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 14 May 2011 00:48:56 +0000 (13 17:48 -0700)
tree10b61224b90047b9c1c9b0252aacba32505e3ec2
parent6cefcff5889cceaa001f76f4be1a1c5e513b241d
return Kgio::File for Kgio.tryopen

This also allows us to return/override #to_path and #path if
necessary, but so far everything works with MRI 1.8, MRI 1.9,
and Rubinius.
ext/kgio/extconf.rb
ext/kgio/set_file_path.h [new file with mode: 0644]
ext/kgio/tryopen.c
test/test_tryopen.rb