Sha256: b932ca62c1740a7db94547244858f31e35d13d4befac88357ec3c4cb22209c0e
Contents?: true
Size: 1008 Bytes
Versions: 1
Compression:
Stored size: 1008 Bytes
Contents
# encoding: UTF-8 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | lib/axlsx/drawing/val_axis.rb |