Method: File::Stat#world_readable?
- Defined in:
- file.c
#world_readable? ⇒ Integer?
5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 |
# File 'file.c', line 5997
static VALUE
rb_stat_wr(VALUE obj)
{
#ifdef S_IROTH
struct stat *st = get_stat(obj);
if ((st->st_mode & (S_IROTH)) == S_IROTH) {
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));
}
#endif
return Qnil;
}
|