Sha256: 315ba626ece7587f1f9dc1f9a75d69f595ee59c0119ba7e3c5fd85d9ee071aed

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 Bytes

Contents

require_relative 'string_reference/string_cache'
module OoxmlParser
  # Class for parsing `c:strRef` object
  class StringReference < OOXMLDocumentObject
    # @return [String] formula
    attr_accessor :formula
    # @return [StringCache] cache of string
    attr_accessor :cache

    # Parse Order
    # @param [Nokogiri::XML:Node] node with Order
    # @return [Order] result of parsing
    def parse(node)
      node.xpath('*').each do |reference_child|
        case reference_child.name
        when 'f'
          @formula = reference_child.text
        when 'strCache'
          @cache = StringCache.new(parent: self).parse(reference_child)
        end
      end
      self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference.rb