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:u` element.
Methods inherited from Element
Constructor Details
#initialize(arguments = { "w:val" => "single" }) ⇒ Underline
Create a new ‘w:u` element.
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/docx_generator/word/formatting.rb', line 30 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 |