method

writable_real?

v2_1_10 - 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