We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cb25f4 commit e1ce1b8Copy full SHA for e1ce1b8
1 file changed
lib/pathname.rb
@@ -1219,8 +1219,12 @@ module Kernel
1219
#
1220
# This method is available since 1.8.5.
1221
def Pathname(path) # :doc:
1222
+ Kernel.Pathname(path)
1223
+ end
1224
+ private :Pathname
1225
+
1226
+ def self.Pathname(path) # Compatibility for C version
1227
return path if Pathname === path
1228
Pathname.new(path)
1229
end
- private :Pathname
1230
0 commit comments