Sha256: 2747cdabd7c2f987b6cdb7c50f16a808d66f925cbc679e840e415482bf940c48

Contents?: true

Size: 778 Bytes

Versions: 20

Compression:

Stored size: 778 Bytes

Contents

# -*- coding: utf-8 -*-

module Writexlsx
  class Chart
    class Caption
      include Writexlsx::Utility

      attr_accessor :name, :formula, :data_id, :name_font
      attr_reader :layout, :overlay, :none

      def initialize(chart)
        @chart = chart
      end

      def merge_with_hash(params) # :nodoc:
        @name, @formula = @chart.process_names(params[:name], params[:name_formula])
        @data_id        = @chart.data_id(@formula, params[:data])
        @name_font      = convert_font_args(params[:name_font])
        @layout   = @chart.layout_properties(params[:layout], 1)

        # Set the title overlay option.
        @overlay  = params[:overlay]

        # Set the no automatic title option.
        @none = params[:none]
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
write_xlsx-1.11.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.10.2 lib/write_xlsx/chart/caption.rb
write_xlsx-1.10.1 lib/write_xlsx/chart/caption.rb
write_xlsx-1.10.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.09.5 lib/write_xlsx/chart/caption.rb
write_xlsx-1.09.4 lib/write_xlsx/chart/caption.rb
write_xlsx-1.09.3 lib/write_xlsx/chart/caption.rb
write_xlsx-1.09.2 lib/write_xlsx/chart/caption.rb
write_xlsx-1.09.1 lib/write_xlsx/chart/caption.rb
write_xlsx-1.09.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.08.2 lib/write_xlsx/chart/caption.rb
write_xlsx-1.08.1 lib/write_xlsx/chart/caption.rb
write_xlsx-1.08.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.07.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.04.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.02.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.01.0 lib/write_xlsx/chart/caption.rb
write_xlsx-1.00.0 lib/write_xlsx/chart/caption.rb
write_xlsx-0.99.0 lib/write_xlsx/chart/caption.rb
write_xlsx-0.97.0 lib/write_xlsx/chart/caption.rb