summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-13 05:48:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-13 05:48:59 +0000
commitc043fe6db4b8b9745466b99976371f568af70dbf (patch)
tree81d1776b9bdec24ddfcf69c0d4fca1b7127bf045 /lib
parent30b14ec98d23ca4d7797d7c86a1d67078e13b5f2 (diff)
downloadruby-c043fe6db4b8b9745466b99976371f568af70dbf.tar.gz
ruby-c043fe6db4b8b9745466b99976371f568af70dbf.tar.xz
ruby-c043fe6db4b8b9745466b99976371f568af70dbf.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/pathname.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index e664d6476..724a8ff2e 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