executable?(p1)
public
Returns true if the named file is executable by the effective user and
group id of this process. See eaccess(3).
Show source
static VALUE
rb_file_executable_p(VALUE obj, VALUE fname)
{
if (rb_eaccess(fname, X_OK) < 0) return Qfalse;
return Qtrue;
}