File.rename(old_name, new_name) â 0
Class Public methods
Renames the given file to the new name. Raises a
SystemCallError
if the file cannot be renamed.
1 | File .rename( "afile" , "afile.bak" ) #=> 0 |
Renames the given file to the new name. Raises a
SystemCallError
if the file cannot be renamed.
1 | File .rename( "afile" , "afile.bak" ) #=> 0 |
Designed by : w10schools
service@w10schools.com
Please login to continue.