File::Spec equivalent?

M

Mark J. Reed

Dumb question: does Ruby have an equivalent to the Perl File::Spec module
(maybe as a built-in part of the File class like Java, instead of in
a separate module) for building and manipulating pathnames portably?
 
J

James Edward Gray II

Dumb question: does Ruby have an equivalent to the Perl File::Spec
module
(maybe as a built-in part of the File class like Java, instead of in
a separate module) for building and manipulating pathnames portably?

I can't remember File::Spec right off the top of my head, but does
the standard pathname module meet your needs?

http://www.ruby-doc.org/stdlib/libdoc/pathname/rdoc/classes/
Pathname.html

http://redhanded.hobix.com/bits/howPowerfulPathnameIs.html

James Edward Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top