1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/pathname/pathname.c (path_grpowned_p): Pathname#grpowned?

translated from pathname.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-09-01 13:04:10 +00:00
parent ee9e8f82d4
commit b1729db292
3 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Wed Sep 1 22:03:41 2010 Tanaka Akira <akr@fsij.org>
* ext/pathname/pathname.c (path_grpowned_p): Pathname#grpowned?
translated from pathname.rb.
Wed Sep 1 17:39:02 2010 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest/*.rb: Imported minitest 1.7.1 r5835.

View file

@ -486,9 +486,6 @@ end
class Pathname # * FileTest *
# See <tt>FileTest.grpowned?</tt>.
def grpowned?() FileTest.grpowned?(@path) end
# See <tt>FileTest.directory?</tt>.
def directory?() FileTest.directory?(@path) end

View file

@ -642,6 +642,15 @@ path_exist_p(VALUE self)
return rb_funcall(rb_mFileTest, rb_intern("exist?"), 1, get_strpath(self));
}
/*
* See <tt>FileTest.grpowned?</tt>.
*/
static VALUE
path_grpowned_p(VALUE self)
{
return rb_funcall(rb_mFileTest, rb_intern("grpowned?"), 1, get_strpath(self));
}
/*
* == Pathname
*
@ -876,4 +885,5 @@ Init_pathname()
rb_define_method(rb_cPathname, "executable?", path_executable_p, 0);
rb_define_method(rb_cPathname, "executable_real?", path_executable_real_p, 0);
rb_define_method(rb_cPathname, "exist?", path_exist_p, 0);
rb_define_method(rb_cPathname, "grpowned?", path_grpowned_p, 0);
}