class Docxtor::RunningElementsBuilder
Attributes
elements[RW]
Public Class Methods
new(&block)
click to toggle source
# File lib/docxtor/running_elements_builder.rb, line 13 def initialize &block @elements = [] instance_eval &block end
Public Instance Methods
method_missing(method_name, *args)
click to toggle source
# File lib/docxtor/running_elements_builder.rb, line 5 def method_missing method_name, *args num = 0 if [:header, :footer].include? method_name num += 1 @elements << RunningElement.new(method_name, num, *args) end end