class OoxmlParser::CommentRangeEnd

Class for parsing ‘w:commentRangeEnd` tags

Attributes

id[R]

@return [Integer] id of bookmark

Public Instance Methods

parse(node) click to toggle source

Parse CommentRangeEnd object @param node [Nokogiri::XML:Element] node to parse @return [CommentRangeEnd] result of parsing

# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/comment_range_end.rb, line 12
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'id'
      @id = value.value.to_i
    end
  end
  self
end