class DocxGenerator::Word::Bold

Represent the ‘w:b` element from Office Open XML specification. This class should not be used directly by the users of the library.

Public Class Methods

new(present = nil) click to toggle source

Create a new ‘w:b` element. @param present [Boolean] If bold should be applied to the text.

Calls superclass method DocxGenerator::Element::new
# File lib/docx_generator/word/formatting.rb, line 10
def initialize(present = nil)
  arguments = (present == nil ? {} : { "w:val" => present })
  super("w:b", arguments)
end