See FileTest.executable?.
FileTest.executable?
Returns:
799 800 801
# File 'lib/fakefs/pathname.rb', line 799 def executable? FileTest.executable?(@path) end