class OoxmlParser::CommentRangeStart
Class for parsing ‘w:CommentRangeStart` tags
Attributes
id[R]
@return [Integer] id of bookmark
Public Instance Methods
comment()
click to toggle source
@return [Comment] object of current comment range
# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/comment_range_start.rb, line 23 def comment root_object.comments.comments_array.detect { |comment| comment.id == id } end
parse(node)
click to toggle source
Parse CommentRangeStart
object @param node [Nokogiri::XML:Element] node to parse @return [CommentRangeStart] result of parsing
# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/comment_range_start.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