class BerkeleyLibrary::Util::ODS::XML::Style::ColumnStyle
Constants
- DEFAULT_WIDTH
Attributes
width[R]
Public Class Methods
new(style_name, width = nil, styles:)
click to toggle source
Initializes a new column style. Note that this should not be called directly, but only from {XML::Office::AutomaticStyles#add_column_style}.
@param style_name [String] the name of the style @param width [String] the column width @param styles [XML::Office::AutomaticStyles] the document styles
Calls superclass method
# File lib/berkeley_library/util/ods/xml/style/column_style.rb, line 20 def initialize(style_name, width = nil, styles:) super(style_name, :table_column, doc: styles.doc) @width = width || DEFAULT_WIDTH add_default_children! end
Private Instance Methods
add_default_children!()
click to toggle source
# File lib/berkeley_library/util/ods/xml/style/column_style.rb, line 28 def add_default_children! children << TableColumnProperties.new(width, doc: doc) end