Method: File::Stat#world_writable?
- Defined in:
- file.c
#world_writable? ⇒ Integer?
6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 |
# File 'file.c', line 6088
static VALUE
rb_stat_ww(VALUE obj)
{
#ifdef S_IWOTH
struct stat *st = get_stat(obj);
if ((st->st_mode & (S_IWOTH)) == S_IWOTH) {
return UINT2NUM(st->st_mode & (S_IRUGO|S_IWUGO|S_IXUGO));
}
#endif
return Qnil;
}
|