method

executable?

ruby latest stable - Class: File
executable?(p1)
public

Returns true if the named file is executable by the effective user and group id of this process. See eaccess(3).