method

writable?

ruby latest stable - Class: FileTest
writable?(p1)
public

Returns true if the named file is writable by the effective user and group id of this process. See eaccess(3).