diff --git a/lib/pathname_builtin.rb b/lib/pathname_builtin.rb index 878603d..d7bc004 100644 --- a/lib/pathname_builtin.rb +++ b/lib/pathname_builtin.rb @@ -1116,7 +1116,14 @@ def glob(*args, **kwargs) # :yield: pathname 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