class DocxGenerator::Word::SmallCapitalLetters

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

Public Class Methods

new(present = nil) click to toggle source

Create a new ‘w:smallCaps` element. @param present [Boolean] If the text should be displayed in small capital letters.

Calls superclass method DocxGenerator::Element::new
# File lib/docx_generator/word/formatting.rb, line 147
def initialize(present = nil)
  arguments = (present == nil ? {} : { "w:val" => present })
  super("w:smallCaps", arguments)
end