class BerkeleyLibrary::Util::ODS::XML::Style::TableStyle
Public Class Methods
new(name, styles:)
click to toggle source
Initializes a new table style. Note that this should not be called directly, but only from {XML::Office::AutomaticStyles#add_table_style}.
@param name [String] the name of the style @param styles [XML::Office::AutomaticStyles] the document styles
Calls superclass method
BerkeleyLibrary::Util::ODS::XML::Style::Style::new
# File lib/berkeley_library/util/ods/xml/style/table_style.rb, line 16 def initialize(name, styles:) super(name, :table, doc: styles.doc) set_attribute('master-page-name', 'Default') children << TableProperties.new(doc: doc) end