stat.executable? â true or false
Instance Public methods
Returns true
if stat is executable or if the
operating system doesn't distinguish executable files from
nonexecutable files. The tests are made using the effective owner of the
process.
File.stat("testfile").executable? #=> false
Please login to continue.