Class: DocxGenerator::Word::Italics
- Defined in:
- lib/docx_generator/word/formatting.rb
Overview
Represent the ‘w:i` element from Office Open XML specification. This class should not be used directly by the users of the library.
Instance Method Summary collapse
-
#initialize(present = nil) ⇒ Italics
constructor
Create a new ‘w:i` element.
Methods inherited from Element
Constructor Details
#initialize(present = nil) ⇒ Italics
Create a new ‘w:i` element.
20 21 22 23 |
# File 'lib/docx_generator/word/formatting.rb', line 20 def initialize(present = nil) arguments = (present == nil ? {} : { "w:val" => present }) super("w:i", arguments) end |