class Docxi::Word::Hyperlinks

Attributes

counter[RW]

Public Class Methods

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

Public Instance Methods

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