Class: DocxGenerator::Word::Underline
- Defined in:
- lib/docx_generator/word/formatting.rb
Overview
Represent the w:u element from Office Open XML specification. This class should not be used directly by the users of the library.
Instance Method Summary collapse
-
#initialize(arguments = { "w:val" => "single" }) ⇒ Underline
constructor
Create a new
w:uelement.
Methods inherited from Element
Constructor Details
#initialize(arguments = { "w:val" => "single" }) ⇒ Underline
Create a new w:u element.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/docx_generator/word/formatting.rb', line 27 def initialize(arguments = { "w:val" => "single" }) final_arguments = {} arguments.each do |option, value| case option when :style then final_arguments["w:val"] = value else final_arguments[option] = value end end super("w:u", final_arguments) end |