Paths aren't strings
People often represent filesystem paths as strings in Ruby. But there’s a better option, and it comes as part of the standard library: Pathname. Let’s take a look at why it’s better.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
People often represent filesystem paths as strings in Ruby. But there’s a better option, and it comes as part of the standard library: Pathname. Let’s take a look at why it’s better.
Post a comment