class DocxGenerator::Word::Italics

Represent the ‘w:i` 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:i` element. @param present [Boolean] If italics should be applied to the text.

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