Class: DocxGenerator::Word::Break

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

Overview

Represent the w:br 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 = {}) ⇒ Break

Create a new w:br element.

Parameters:

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

    The attributes of the XML element. Check the specification of the w:br element for the possible attributes.

  • content (Array)

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



77
78
79
# File 'lib/docx_generator/word/base.rb', line 77

def initialize(attributes = {})
  super("w:br", attributes)
end