[ruby/pathname] [DOC] Doc for ::getwd

https://github.com/ruby/pathname/commit/d99e62665e
This commit is contained in:
BurdetteLamar 2026-01-03 09:38:41 -06:00 committed by Hiroshi SHIBATA
parent 489916a607
commit 7d7c776fdf
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -1156,7 +1156,14 @@ class Pathname # * Dir *
end
end
# See <tt>Dir.getwd</tt>. 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 <tt>Pathname.new(Dir.getwd)</tt>):
#
# Pathname.getwd # => #<Pathname:/home>
#
def Pathname.getwd() self.new(Dir.getwd) end
class << self
alias pwd getwd