Class: DocxGenerator::Word::Bold
- Defined in:
- lib/docx_generator/word/formatting.rb
Instance Method Summary collapse
-
#initialize(present = nil) ⇒ Bold
constructor
A new instance of Bold.
Methods inherited from Element
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 |