Skip to content
instance method

File::Stat#writable?

() -> bool
stat.writable? → true or false

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

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