class method
Kernel.Pathname
(::string | ::Pathname) -> ::Pathname
Pathname(path)
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 1167
def Pathname(path) # :doc:
return path if Pathname === path
Pathname.new(path)
end
Creates a Pathname object.