Class: DocxGenerator::Word::Body

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

Overview

Represent the w:body 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(content = []) ⇒ Body

Create a new w:body XML element.



18
19
20
# File 'lib/docx_generator/word/base.rb', line 18

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