class OoxmlParser::ExcelComment
Single Comment
of XLSX
Attributes
characters[RW]
text[R]
@return [String] text of comment
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/excel_comments/excel_comment.rb, line 10 def initialize(parent: nil) @characters = [] super end
Public Instance Methods
parse(node)
click to toggle source
Parse ExcelComment
object @param node [Nokogiri::XML:Element] node to parse @return [ExcelComment] result of parsing
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/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