Method: DocxGenerator::Element#initialize
- Defined in:
- lib/docx_generator/element.rb
#initialize(name, attributes = {}, content = []) ⇒ Element
Create a new XML element.
10 11 12 13 14 |
# File 'lib/docx_generator/element.rb', line 10 def initialize(name, attributes = {}, content = []) @name = name @attributes = attributes @content = content end |