Class: DocxGenerator::Word::VerticalAlign

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

Overview

Represent the ‘w:vertAlign` 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) ⇒ VerticalAlign

Create a new ‘w:vertAlign` element.

Parameters:

  • value (String)

    The type of alignment. It should be ‘baseline`, `subscript` or `superscript`.



128
129
130
# File 'lib/docx_generator/word/formatting.rb', line 128

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