Sha256: c4f65e7ed9998009aa8c6721482f1ea3e2c9b9cbbf653fa65e2123dada053af7

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

require_relative 'excel_comment/excel_comment_character'
# Single Comment of XLSX
module OoxmlParser
  class ExcelComment < OOXMLDocumentObject
    attr_accessor :characters

    def initialize(characters = [])
      @characters = characters
    end

    def self.parse(comment_node)
      comment = ExcelComment.new
      comment_node.xpath('xmlns:text/xmlns:r').each do |character_node|
        character = ExcelCommentCharacter.parse(character_node)
        comment.characters << character.dup
      end
      comment
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/excel_comments/excel_comment.rb
ooxml_parser-0.1.1 lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/excel_comments/excel_comment.rb