How to tell Ruby the relative path of file

Hi all,

I use window vista version. I want to open a file using relative path.I
wonder it is possible and how.

Thank you very much,

Li

I use window vista version. I want to open a file using relative path.I
wonder it is possible and how.

Check out the “require_all” gem which has a require_rel method.

or “require_relative” from backports/1.9:

Also note that if you want to calculate a relative path between two
files, use Pathname#relative_path_from

GL.
-r