File.readable_real?(file_name) → true or false
Returns true if the named file is readable by the real user id of this process.
Source Code
/* * call-seq: * File.readable_real?(file_name) => true or false * * Returns <code>true</code> if the named file is readable by the real * user id of this process. */ static VALUE test_R(obj, fname) VALUE obj, fname; { SafeStringValue(fname); if (access(StringValueCStr(fname), R_OK) < 0) return Qfalse; return Qtrue; }
<code/>and<pre/>for code samples.