Sha256: 56f1d2f08daca4d8732251b107381e60fa0430b089d911f15fa32baf4c3b5b75
Contents?: true
Size: 602 Bytes
Versions: 8
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Single author `commentList` class CommentList < OOXMLDocumentObject attr_reader :comments def initialize(parent: nil) @comments = [] @parent = parent end # Parse Author object # @param node [Nokogiri::XML:Element] node to parse # @return [CommentList] result of parsing def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'comment' @comments << ExcelComment.new(parent: self).parse(node_child) end end self end end end
Version data entries
8 entries across 8 versions & 1 rubygems