Method: DocxGenerator::Word::Body#initialize

Defined in:
lib/docx_generator/word/base.rb

#initialize(content = []) ⇒ Body

Create a new ‘w:body` XML element.

Parameters:

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

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



20
21
22
# File 'lib/docx_generator/word/base.rb', line 20

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