Skip to content

Commit e1ce1b8

Browse files
committed
Make Kernel.Pathname as public again
1 parent 6cb25f4 commit e1ce1b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/pathname.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,8 +1219,12 @@ module Kernel
12191219
#
12201220
# This method is available since 1.8.5.
12211221
def Pathname(path) # :doc:
1222+
Kernel.Pathname(path)
1223+
end
1224+
private :Pathname
1225+
1226+
def self.Pathname(path) # Compatibility for C version
12221227
return path if Pathname === path
12231228
Pathname.new(path)
12241229
end
1225-
private :Pathname
12261230
end

0 commit comments

Comments
 (0)