File Directory Ruby

File.stat("testfile").executable_real?