Class: Goldendocx::Documents::Document

Inherits:
Object
  • Object
show all
Includes:
Goldendocx::Document
Defined in:
lib/goldendocx/documents/document.rb

Constant Summary collapse

TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument'
XML_PATH =
'word/document.xml'
CONTENT_TYPE =
'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml'

Instance Method Summary collapse

Methods included from Goldendocx::Document

#to_document_xml

Methods included from Element

#build_element, #initialize, #namespace, #tag, #tag_name, #to_element, #to_xml

Methods included from HasChildren

#children, #read_child, #read_children

Methods included from HasAttributes

#assign_attributes, #attributes, #read_attributes

Instance Method Details

#write_to(zos) ⇒ Object



21
22
23
24
# File 'lib/goldendocx/documents/document.rb', line 21

def write_to(zos)
  zos.put_next_entry XML_PATH
  zos.write to_document_xml
end