diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-18 11:35:38 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-18 11:35:38 +0000 |
commit | def3aa514abd24d4846f43d0774f370497b7aac2 (patch) | |
tree | e27fa4e2938b8ddaa9a0f4baae3f58683f237dc7 /lib/pathname.rb | |
parent | c40f4227f576a6433ffd1d61e1e53cad81ad1e7d (diff) |
lib/pathname.rb: update document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r-- | lib/pathname.rb | 8 |
1 files changed, 5 insertions, 3 deletions
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 |