lib/berkeley_library/util/ods/spreadsheet.rb
# Writes this spreadsheet as an exploded set of pretty-printed XML files.
# NOTE: OpenOffice itself and many other tools get confused by the extra text
# nodes in the pretty-printed files and won't read them properly; this method
# is mostly for debugging.
#
# @return [Array<String>] a list of files written.
Writes this spreadsheet as an exploded set of pretty-printed XML files.
NOTE: OpenOffice itself and many other tools get confused by the extra text
nodes in the pretty-printed files and won't read them properly; this method
is mostly for debugging.
Writes this spreadsheet as an exploded set of pretty - printed XML files . NOTE : OpenOffice itself and many other tools get confused by the extra text nodes in the pretty - printed files and won ' t read them properly ; this method is mostly for debugging .
def write_exploded_to(dir)
          raise ArgumentError, "Not a directory: #{dir.inspect}" unless File.directory?(dir)
          [].tap do |files_written|
            each_document do |doc|
              output_path = write_exploded(doc, dir)
              files_written << File.absolute_path(output_path)
              logger.debug("Wrote #{files_written.last}")
            end
          end
        end
def write_exploded_to ( dir ) raise ArgumentError , "Not a directory: #{dir.inspect}" unless File . directory? ( dir ) [ ] . tap do | files_written | each_document do | doc | output_path = write_exploded ( doc , dir ) files_written << File . absolute_path ( output_path ) logger . debug ( "Wrote #{files_written.last}" ) end end end
Writes this spreadsheet as an exploded set of pretty-printed XML files.
Writes this spreadsheet as an exploded set of pretty - printed XML files .
a list of files written.
a list of files written .
Array<String>
dir
<not_specific>