class OoxmlParser::CommentExtended

Class for parsing ‘w15:commentEx` tag

Attributes

done[RW]

@return [True, False] is done?

paragraph_id[RW]

@return [Integer] id of paragraph

Public Instance Methods

parse(node) click to toggle source

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

# File lib/ooxml_parser/docx_parser/document_structure/comments_extended/comment_extended.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'paraId'
      @paragraph_id = value.value.to_i
    when 'done'
      @done = attribute_enabled?(value.value)
    end
  end
  self
end