--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: 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. - !ruby/struct:SM::Flow::VERB body: " File.umask(0006) #=> 18\n File.umask #=> 6\n" full_name: File::umask is_singleton: true name: umask params: | File.umask() => integer File.umask(integer) => integer visibility: public