class DocxGenerator::Word::Document

Represent the ‘w:document` element from Office Open XML specification. This class should not be used directly by the users of the library.

Public Class Methods

new(attributes = {}, content = []) click to toggle source

Create a new ‘w:document` XML element. @param attributes [Hash] The attributes of the XML element. Check the specification of the `w:document` element for the possible attributes. @param content [Array] An array of the children of the XML element (other XML elements).

Calls superclass method DocxGenerator::Element::new
# File lib/docx_generator/word/base.rb, line 11
def initialize(attributes = {}, content = [])
  super("w:document", attributes, content)
end