class DocxGenerator::Word::Size
Represent the ‘w:sz` element from Office Open XML specification. This class should not be used directly by the users of the library.
Public Class Methods
new(size)
click to toggle source
Create a new ‘w:sz` element. @param size [Number] The size of the text (in points)
Calls superclass method
DocxGenerator::Element::new
# File lib/docx_generator/word/formatting.rb, line 46 def initialize(size) super("w:sz", { "w:val" => size*2 }) end