Sha256: 31a915c745620fe7b524b82447347c6c28068bf279d0c6e79839670307175685

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

# encoding: UTF-8
module Axlsx
  # A series title is a Title with a slightly different serialization than chart titles.
  class SeriesTitle < Title

    # Serializes the series title
    # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
    # @return [String]
    def to_xml(xml)
      xml[:c].tx {
        xml[:c].strRef {
          xml[:c].f Axlsx::cell_range([@cell])
          xml[:c].strCache {
            xml[:c].ptCount :val=>1
            xml[:c].pt(:idx=>0) {
              xml[:c].v @text
            }
          }
        }
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axlsx-1.0.18 lib/axlsx/drawing/series_title.rb
axlsx-1.0.17 lib/axlsx/drawing/series_title.rb