From 7d7c776fdfe03e54537164ed91e22ca722a24259 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sat, 3 Jan 2026 09:38:41 -0600 Subject: [ruby/pathname] [DOC] Doc for ::getwd https://github.com/ruby/pathname/commit/d99e62665e --- pathname_builtin.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pathname_builtin.rb b/pathname_builtin.rb index d649a0dfd0..a78f812459 100644 --- a/pathname_builtin.rb +++ b/pathname_builtin.rb @@ -1156,7 +1156,14 @@ class Pathname # * Dir * end end - # See Dir.getwd. Returns the current working directory as a Pathname. + # call-seq: + # Pathname.getwd -> new_pathname + # + # Returns a new \Pathname object containing the path to the current working directory + # (equivalent to Pathname.new(Dir.getwd)): + # + # Pathname.getwd # => # + # def Pathname.getwd() self.new(Dir.getwd) end class << self alias pwd getwd -- cgit v1.2.3