class BerkeleyLibrary::Util::ODS::XML::Style::RowStyle
Constants
- DEFAULT_HEIGHT
Attributes
height[R]
Public Class Methods
new(name, height = nil, styles:)
click to toggle source
Initializes a new cell style. Note that this should not be called directly, but only from {XML::Office::AutomaticStyles#add_row_style}.
@param name [String] the name of the style @param height [String] the row height @param styles [XML::Office::AutomaticStyles] the document styles
Calls superclass method
# File lib/berkeley_library/util/ods/xml/style/row_style.rb, line 21 def initialize(name, height = nil, styles:) super(name, :table_row, doc: styles.doc) @height = height || DEFAULT_HEIGHT add_default_children! end
Private Instance Methods
add_default_children!()
click to toggle source
# File lib/berkeley_library/util/ods/xml/style/row_style.rb, line 29 def add_default_children! children << TableRowProperties.new(height, doc: doc) end