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:
http://github.com/marcandre/backports/tree/master

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

GL.
-r

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs