executable?

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
doc_ruby_on_rails
2015-04-06 06:40:56
Comments
Leave a Comment

Please login to continue.