From def3aa514abd24d4846f43d0774f370497b7aac2 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 18 Sep 2003 11:35:38 +0000 Subject: lib/pathname.rb: update document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pathname.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/pathname.rb') diff --git a/lib/pathname.rb b/lib/pathname.rb index 3a8edfc136..d48cef6857 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -35,7 +35,7 @@ class Pathname # cleanpath returns clean pathname of self which is without consecutive # slashes and useless dots. # - # If true is given to the optional artument consider_symlink, + # If true is given as the optional argument consider_symlink, # symbolic links are considered. It makes more dots are retained. # # cleanpath doesn't access actual filesystem. @@ -163,7 +163,7 @@ class Pathname self.join('..') end - # mountpoint? method returns true if self points mountpoint. + # mountpoint? method returns true if self points a mountpoint. def mountpoint? begin stat1 = self.lstat @@ -184,6 +184,7 @@ class Pathname =end # root? method is a predicate for root directory. + # I.e. it returns true if the pathname consists of consecutive slashes. # # It doesn't access actual filesystem. # So it may return false for some pathnames @@ -215,7 +216,8 @@ class Pathname @path.scan(%r{[^/]+}) { yield $& } end - # Pathname#+ return new pathname which is concatinated with self and an argument. + # Pathname#+ return new pathname which is concatenated with self and + # an argument. # If the argument is absolute pathname, it is just returned. def +(other) other = Pathname.new(other) unless Pathname === other -- cgit v1.2.3