Method: Twb::Workbook#writeAppend
- Defined in:
- lib/twb/workbook.rb
#writeAppend(str) ⇒ Object
Write the TWB to a file, appending the base name with the provided string. Intended for use when making adjustments to the TWB without overwriting the original.
160 161 162 163 |
# File 'lib/twb/workbook.rb', line 160 def writeAppend(str) newName = @name.sub(/[.]twb$/,'') + str.gsub(/^[.]*/,'.') + '.twb' write newName end |