diff --git a/src/file.cr b/src/file.cr index 39776b5824cc..1f2e2d54728a 100644 --- a/src/file.cr +++ b/src/file.cr @@ -788,7 +788,7 @@ class File < IO::FileDescriptor # File.join({"foo/", "/bar/", "/baz"}) # => "foo/bar/baz" # File.join(["/foo/", "/bar/", "/baz/"]) # => "/foo/bar/baz/" # ``` - def self.join(parts : Array | Tuple) : String + def self.join(parts : Enumerable) : String Path.new(parts).to_s end