umask

File.umask() â integer
File.umask(integer) â integer
Class Public methods

Returns the current umask value for this process. If the optional argument is given, set the umask to that value and return the previous value. Umask values are subtracted from the default permissions, so a umask of 0222 would make a file read-only for everyone.

File.umask(0006)   #=> 18
File.umask         #=> 6
doc_ruby_on_rails
2015-04-06 12:47:28
Comments
Leave a Comment

Please login to continue.