diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-22 12:40:45 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-22 12:40:45 +0000 |
commit | 8b53e39a2e6110cf13827c88673a3ef2667991cf (patch) | |
tree | eb1fa37c2a675b75c295285b5c313ba05801c2b8 /lib/pathname.rb | |
parent | f36a3f0ea57aa05a72cb58937c7a737455a98a38 (diff) | |
download | ruby-rexml_adds_tests.tar.gz |
Second merge from trunk.rexml_adds_tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rexml_adds_tests@19455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r-- | lib/pathname.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index 7bee22b58f..45974545a6 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -43,7 +43,7 @@ # base = p.basename # Pathname:ruby # dir, base = p.split # [Pathname:/usr/bin, Pathname:ruby] # data = p.read -# p.open { |f| _ } +# p.open { |f| _ } # p.each_line { |line| _ } # # === Example 2: Using standard Ruby @@ -55,7 +55,7 @@ # base = File.basename(p) # "ruby" # dir, base = File.split(p) # ["/usr/bin", "ruby"] # data = File.read(p) -# File.open(p) { |f| _ } +# File.open(p) { |f| _ } # File.foreach(p) { |line| _ } # # === Example 3: Special features @@ -71,7 +71,7 @@ # p5.cleanpath # Pathname:articles # p5.realpath # Pathname:/home/gavin/articles # p5.children # [Pathname:/home/gavin/articles/linux, ...] -# +# # == Breakdown of functionality # # === Core methods @@ -452,7 +452,7 @@ class Pathname # Returns a real (absolute) pathname of +self+ in the actual filesystem. # The real pathname doesn't contain symlinks or useless dots. # - # No arguments should be given; the old behaviour is *obsoleted*. + # No arguments should be given; the old behaviour is *obsoleted*. # def realpath path = @path @@ -587,7 +587,7 @@ class Pathname # p2 = p1 + "bin/ruby" # Pathname:/usr/bin/ruby # p3 = p1 + "/etc/passwd" # Pathname:/etc/passwd # - # This method doesn't access the file system; it is pure string manipulation. + # This method doesn't access the file system; it is pure string manipulation. # def +(other) other = Pathname.new(other) unless Pathname === other |