Class: DocxGenerator::Word::SmallCapitalLetters

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

Overview

Represent the ‘w:smallCaps` 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(present = nil) ⇒ SmallCapitalLetters

Create a new ‘w:smallCaps` element.

Parameters:

  • present (Boolean) (defaults to: nil)

    If the text should be displayed in small capital letters.



147
148
149
150
# File 'lib/docx_generator/word/formatting.rb', line 147

def initialize(present = nil)
  arguments = (present == nil ? {} : { "w:val" => present })
  super("w:smallCaps", arguments)
end