lib/axlsx/stylesheet/table_styles.rb in axlsx-1.0.8 vs lib/axlsx/stylesheet/table_styles.rb in axlsx-1.0.9
- old
+ new
@@ -3,26 +3,26 @@
# @note Support for custom table styles does not exist in this version. Many of the classes required are defined in preparation for future release. Please do not attempt to add custom table styles.
class TableStyles < SimpleTypedList
# The default table style. The default value is 'TableStyleMedium9'
# @return [String]
- #
- attr_accessor :defaultTableStyle
+ attr_reader :defaultTableStyle
# The default pivot table style. The default value is 'PivotStyleLight6'
# @return [String]
- attr_accessor :defaultPivotStyle
+ attr_reader :defaultPivotStyle
# Creates a new TableStyles object that is a container for TableStyle objects
# @option options [String] defaultTableStyle
# @option options [String] defaultPivotStyle
def initialize(options={})
@defaultTableStyle = options[:defaultTableStyle] || "TableStyleMedium9"
@defaultPivotStyle = options[:defaultPivotStyle] || "PivotStyleLight16"
super TableStyle
end
-
+ # @see defaultTableStyle
def defaultTableStyle=(v) Axlsx::validate_string(v); @defaultTableStyle = v; end
+ # @see defaultPivotStyle
def defaultPivotStyle=(v) Axlsx::validate_string(v); @defaultPivotStyle = v; end
# Serializes the table styles element
# @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
# @return [String]