class OoxmlParser::CommentExtended
Class for parsing ‘w15:commentEx` tag
Attributes
@return [True, False] is done?
@return [Integer] id of paragraph
@return [Integer] id of parent paragraph
Public Instance Methods
Source
# File lib/ooxml_parser/docx_parser/document_structure/comments_extended/comment_extended.rb, line 16 def parse(node) node.attributes.each do |key, value| case key when 'paraId' @paragraph_id = value.value.to_i when 'paraIdParent' @parent_paragraph_id = value.value.to_i when 'done' @done = attribute_enabled?(value.value) end end self end
Parse CommentExtended
object @param node [Nokogiri::XML:Element] node to parse @return [CommentExtended] result of parsing