diff options
| -rw-r--r-- | pathname_builtin.rb | 9 |
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 |
