class Docxtor2::ContentBuilder
Public Class Methods
build(&block)
click to toggle source
# File lib/docxtor2/content_builder.rb, line 6 def build(&block) instance = new(block) instance.build end
new(block)
click to toggle source
Calls superclass method
# File lib/docxtor2/content_builder.rb, line 18 def initialize(block) super() evaluate &block end
Public Instance Methods
build()
click to toggle source
# File lib/docxtor2/content_builder.rb, line 23 def build xml = Builder::XmlMarkup.new write_elements(xml) xml.target! end