class DocxGenerator::Word::Alignment

Represent the ‘w:jc` element from Office Open XML specification. This class should not be used directly by the users of the library.

Public Class Methods

new(value) click to toggle source

Create a new ‘w:jc` element. @param value [String] The type of alignment. The list of all types of alignment can be found in the specification.

Calls superclass method DocxGenerator::Element::new
# File lib/docx_generator/word/formatting.rb, line 55
def initialize(value)
  super("w:jc", { "w:val" => value })
end