The module here is called URI, so it's probably reasonable to expect a requirement for the path to be RFC3986-compliant.
On the other hand, the class is called File, so it might be reasonable to expect that a path produced by e.g. Ruby's built-in File class would be consumable by this build method (it fails if the filename contains e.g. a space).
The module here is called
URI
, so it's probably reasonable to expect a requirement for the path to be RFC3986-compliant.On the other hand, the class is called
File
, so it might be reasonable to expect that a path produced by e.g. Ruby's built-inFile
class would be consumable by thisbuild
method (it fails if the filename contains e.g. a space).