mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/pathname] [DOC] Doc for ::getwd
https://github.com/ruby/pathname/commit/d99e62665e
This commit is contained in:
parent
489916a607
commit
7d7c776fdf
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user