method

writable?

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

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

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