class RubyDocx::Elements::Bookmark

Attributes

anchor[R]

Public Instance Methods

anchor=(an) click to toggle source
# File lib/ruby_docx/elements/bookmark.rb, line 22
def anchor=(an)
  @anchor = an
end
element() click to toggle source
# File lib/ruby_docx/elements/bookmark.rb, line 5
def element
  @element ||= @node.children.first
end
replace(an) click to toggle source
# File lib/ruby_docx/elements/bookmark.rb, line 26
def replace(an)
  self.anchor = an
end
to_html() click to toggle source
# File lib/ruby_docx/elements/bookmark.rb, line 30
def to_html
  if self.anchor
    "<span name=\"#{self.anchor}\"></span>"
  else
    ""
  end
end
to_s() click to toggle source
# File lib/ruby_docx/elements/bookmark.rb, line 38
def to_s
  ""
end