Sha256: 48cd4fe75eddb07d0ff6585ece4d29340f58e9e469107052d37055edab132faa
Contents?: true
Size: 395 Bytes
Versions: 8
Compression:
Stored size: 395 Bytes
Contents
# this code is to change the file name def changecalcscriptname oldName = $calcscript_directory + "/" + @a_calcscriptfilename + ".math" newName = $calcscript_directory + "/" + @a_changecalcscriptname + ".math" begin File.rename(oldName, newName) @calcscriptfilechangeresult = "File Renamed!" rescue @calcscriptfilechangeresult = "rename error" end end
Version data entries
8 entries across 8 versions & 2 rubygems