Class: DocxGenerator::Word::Italics
- Defined in:
- lib/docx_generator/word/formatting.rb
Instance Method Summary collapse
-
#initialize(present = nil) ⇒ Italics
constructor
A new instance of Italics.
Methods inherited from Element
Constructor Details
#initialize(present = nil) ⇒ Italics
Returns a new instance of Italics.
11 12 13 14 |
# File 'lib/docx_generator/word/formatting.rb', line 11 def initialize(present = nil) arguments = (present == nil ? {} : { "w:val" => present }) super("w:i", arguments) end |