Class: DocxGenerator::Word::Alignment

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

Overview

Represent the ‘w:jc` 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(value) ⇒ Alignment

Create a new ‘w:jc` element.

Parameters:

  • value (String)

    The type of alignment. The list of all types of alignment can be found in the specification.



55
56
57
# File 'lib/docx_generator/word/formatting.rb', line 55

def initialize(value)
  super("w:jc", { "w:val" => value })
end