class OoxmlParser::ExcelComment
Single Comment
of XLSX
Attributes
@return [String] text of comment
Public Class Methods
Source
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/excel_comments/excel_comment.rb, line 10 def initialize(parent: nil) @characters = [] super end
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
Public Instance Methods
Source
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/excel_comments/excel_comment.rb, line 18 def parse(node) node.xpath('xmlns:text/xmlns:r').each do |node_child| @characters << ParagraphRun.new(parent: self).parse(node_child) end node.xpath('xmlns:text/*').each do |node_child| case node_child.name when 't' @text = Text.new(parent: self).parse(node_child) end end self end
Parse ExcelComment
object @param node [Nokogiri::XML:Element] node to parse @return [ExcelComment] result of parsing