Class: DocxGenerator::Word::Bold

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

Instance Method Summary collapse

Methods inherited from Element

#add, #generate

Constructor Details

#initialize(present = nil) ⇒ Bold

Returns a new instance of Bold.



4
5
6
7
# File 'lib/docx_generator/word/formatting.rb', line 4

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