class Docxi::Word::Headers

Attributes

counter[RW]
headers[RW]

Public Class Methods

new() click to toggle source
# File lib/docxi/word/headers.rb, line 8
def initialize
  @headers = []
  @counter = 0
end

Public Instance Methods

add(header) click to toggle source
# File lib/docxi/word/headers.rb, line 13
def add(header)
  @headers << header
  header
end
render(zip) click to toggle source
# File lib/docxi/word/headers.rb, line 22
def render(zip)
  @headers.each do |header|
    header.render(zip)
  end
end
sequence() click to toggle source
# File lib/docxi/word/headers.rb, line 18
def sequence
  @counter += 1
end