method

writable_real?

v1_9_2_180 - Show latest stable - Class: File::Stat
writable_real?()
public

Returns true if stat is writable by the real user id of this process.

File.stat("testfile").writable_real?   #=> true