diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-08-22 12:04:20 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-08-25 17:40:11 +0900 |
| commit | 3aa568071a0f1a7f68a7f4dc7f8cce614999d319 (patch) | |
| tree | 3b7fad8751218c7493a7ba3a883314b331930b77 | |
| parent | c085672c7f7963c4c97889c5281f41d5fb140c5d (diff) | |
Make Kernel.Pathname as public again
| -rw-r--r-- | pathname_builtin.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pathname_builtin.rb b/pathname_builtin.rb index 2860e3b8ef..28cedcdcd7 100644 --- a/pathname_builtin.rb +++ b/pathname_builtin.rb @@ -1160,8 +1160,12 @@ module Kernel # # This method is available since 1.8.5. def Pathname(path) # :doc: + Kernel.Pathname(path) + end + private :Pathname + + def self.Pathname(path) # Compatibility for C version return path if Pathname === path Pathname.new(path) end - private :Pathname end |
