Class: DocxGenerator::Word::Text

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

Overview

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

Create a new ‘w:t` XML element.

Parameters:

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

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

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

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



68
69
70
# File 'lib/docx_generator/word/base.rb', line 68

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