summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2026-01-03 09:38:41 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2026-01-23 14:56:11 +0900
commit7d7c776fdfe03e54537164ed91e22ca722a24259 (patch)
tree8d6ec5b8b895468bf82e2430ad262d6d17e1e68f
parent489916a607861f62512c3ae1bc583fd043ce4ab6 (diff)
[ruby/pathname] [DOC] Doc for ::getwd
https://github.com/ruby/pathname/commit/d99e62665e
-rw-r--r--pathname_builtin.rb9
1 files changed, 8 insertions, 1 deletions
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 <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