lib/axlsx/stylesheet/table_style_element.rb in axlsx-1.0.8 vs lib/axlsx/stylesheet/table_style_element.rb in axlsx-1.0.9
- old
+ new
@@ -30,31 +30,36 @@
# :secondRowSubheading
# :thirdRowSubheading
# :pageFieldLabels
# :pageFieldValues
# @return [Symbol]
- attr_accessor :type
+ attr_reader :type
# Number of rows or columns used in striping when the type is firstRowStripe, secondRowStripe, firstColumnStripe, or secondColumnStripe.
# @return [Integer]
- attr_accessor :size
+ attr_reader :size
# The dxfId this style element points to
# @return [Integer]
- attr_accessor :dxfId
+ attr_reader :dxfId
# creates a new TableStyleElement object
# @option options [Symbol] type
# @option options [Integer] size
# @option options [Integer] dxfId
def initialize(options={})
options.each do |o|
self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
end
end
-
+
+ # @see type
def type=(v) Axlsx::validate_table_element_type v; @type = v end
+
+ # @see size
def size=(v) Axlsx::validate_unsigned_int v; @size = v end
+
+ # @see dxfId
def dxfId=(v) Axlsx::validate_unsigned_int v; @dxfId = v end
# Serializes the table style element
# @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
# @return [String]