diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 05:48:59 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 05:48:59 +0000 |
commit | 6760a5ed9f693686fa1571850716360c676dc7f5 (patch) | |
tree | 81d1776b9bdec24ddfcf69c0d4fca1b7127bf045 /lib/pathname.rb | |
parent | 47c7c5bac646f4d0ac3640856354884b751b6be4 (diff) |
* parse.y (primary): allow no "when" case. [ruby-dev:22578]
* ruby.h (rb_class_of): reduce branch. [ruby-dev:22577]
* ruby.h (rb_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r-- | lib/pathname.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index e664d64768..724a8ff2eb 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -103,6 +103,7 @@ # - #owned? # - #pipe? # - #readable? +# - #world_readable? # - #readable_real? # - #setgid? # - #setuid? @@ -112,6 +113,7 @@ # - #sticky? # - #symlink? # - #writable? +# - #world_writable? # - #writable_real? # - #zero? # @@ -717,6 +719,9 @@ class Pathname # * FileTest * # See <tt>FileTest.readable?</tt>. def readable?() FileTest.readable?(@path) end + # See <tt>FileTest.readable_world?</tt>. + def readable_world?() FileTest.readable_world?(@path) end + # See <tt>FileTest.readable_real?</tt>. def readable_real?() FileTest.readable_real?(@path) end @@ -741,6 +746,9 @@ class Pathname # * FileTest * # See <tt>FileTest.writable?</tt>. def writable?() FileTest.writable?(@path) end + # See <tt>FileTest.writable_world?</tt>. + def writable_world?() FileTest.writable_world?(@path) end + # See <tt>FileTest.writable_real?</tt>. def writable_real?() FileTest.writable_real?(@path) end |