Class: DocxGenerator::Word::Paragraph

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

Overview

Represent the ‘w:p` 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 = []) ⇒ Paragraph

Create a new ‘w:p` XML element.

Parameters:

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

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

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

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



30
31
32
# File 'lib/docx_generator/word/base.rb', line 30

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