Class: DocxGenerator::Word::Run

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

Overview

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

Create a new ‘w:r` XML element.

Parameters:

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

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

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

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



49
50
51
# File 'lib/docx_generator/word/base.rb', line 49

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