You can say
CopyFile.chmod(0604, '/path/to/file') # rw----r--
File.chmod(0604, '/path/to/file') # rw----r--
The leading zero is meaningful.