Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/pathname_builtin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,14 @@ def glob(*args, **kwargs) # :yield: pathname
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
Expand Down