class DocxGenerator::Word::Paragraph

Represent the ‘w:p` 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:p` XML element. @param attributes [Hash] The attributes of the XML element. Check the specification of the `w:p` 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 30
def initialize(attributes = {}, content = [])
  super("w:p", attributes, content)
end