Sha256: 1c14f05f3c365d3fdfd6132adb02e513245ca7fce1bca38faa828ece21d544cd
Contents?: true
Size: 983 Bytes
Versions: 5
Compression:
Stored size: 983 Bytes
Contents
# frozen_string_literal: true module Axlsx # the ValAxis class defines a chart value axis. class ValAxis < Axis # This element specifies how the value axis crosses the category axis. # must be one of [:between, :midCat] # @return [Symbol] attr_reader :cross_between alias :crossBetween :cross_between # Creates a new ValAxis object # @option options [Symbol] crosses_between def initialize(options = {}) self.cross_between = :between super(options) end # @see cross_between def cross_between=(v) RestrictionValidator.validate "ValAxis.cross_between", [:between, :midCat], v @cross_between = v end alias :crossBetween= :cross_between= # Serializes the object # @param [String] str # @return [String] def to_xml_string(str = +'') str << '<c:valAx>' super(str) str << '<c:crossBetween val="' << @cross_between.to_s << '"/>' str << '</c:valAx>' end end end
Version data entries
5 entries across 5 versions & 2 rubygems