Would http://www.ruby-doc.org/core-2.0/File.html#method-c-readable-3F do the same thing?