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.
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