Method: RubyXL::OOXMLTopLevelObject#add_to_zip
- Defined in:
- lib/rubyXL/objects/ooxml_object.rb
permalink #add_to_zip(zip_stream) ⇒ Object
Saves the contents of the object as XML to respective location in .xslx
zip container.
Parameters
-
zipfile
- ::Zip::File to which the resulting XNMML should be added.
457 458 459 460 461 462 463 |
# File 'lib/rubyXL/objects/ooxml_object.rb', line 457 def add_to_zip(zip_stream) xml_string = write_xml return false if xml_string.empty? zip_stream.put_next_entry(RubyXL::from_root(self.xlsx_path)) zip_stream.write(xml_string) true end |