Skip to content

Commit 07b0e6e

Browse files
authored
Merge pull request #82 from BurdetteLamar/getwd_doc
[DOC] Doc for ::getwd
2 parents e0452b4 + d99e626 commit 07b0e6e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/pathname_builtin.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,14 @@ def glob(*args, **kwargs) # :yield: pathname
11561156
end
11571157
end
11581158

1159-
# See <tt>Dir.getwd</tt>. Returns the current working directory as a Pathname.
1159+
# call-seq:
1160+
# Pathname.getwd -> new_pathname
1161+
#
1162+
# Returns a new \Pathname object containing the path to the current working directory
1163+
# (equivalent to <tt>Pathname.new(Dir.getwd)</tt>):
1164+
#
1165+
# Pathname.getwd # => #<Pathname:/home>
1166+
#
11601167
def Pathname.getwd() self.new(Dir.getwd) end
11611168
class << self
11621169
alias pwd getwd

0 commit comments

Comments
 (0)