Class: DocxGenerator::Word::Document

Inherits:
Element
  • Object
show all
Defined in:
lib/docx_generator/word/base.rb

Overview

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

Instance Method Summary collapse

Methods inherited from Element

#add, #generate

Constructor Details

#initialize(attributes = {}, content = []) ⇒ Document

Create a new ‘w:document` XML element.

Parameters:

  • attributes (Hash) (defaults to: {})

    The attributes of the XML element. Check the specification of the ‘w:document` element for the possible attributes.

  • content (Array) (defaults to: [])

    An array of the children of the XML element (other XML elements).



11
12
13
# File 'lib/docx_generator/word/base.rb', line 11

def initialize(attributes = {}, content = [])
  super("w:document", attributes, content)
end