Class: DocxGenerator::Word::Bold
- Defined in:
- lib/docx_generator/word/formatting.rb
Overview
Represent the w:b 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) ⇒ Bold
constructor
Create a new
w:belement.
Methods inherited from Element
Constructor Details
#initialize(present = nil) ⇒ Bold
Create a new w:b element.
7 8 9 10 |
# File 'lib/docx_generator/word/formatting.rb', line 7 def initialize(present = nil) arguments = (present == nil ? {} : { "w:val" => present }) super("w:b", arguments) end |