Class: BerkeleyLibrary::Util::ODS::XML::Style::TableColumnProperties

Inherits:
ElementNode
  • Object
show all
Defined in:
lib/berkeley_library/util/ods/xml/style/table_row_properties.rb

Instance Attribute Summary collapse

Attributes inherited from ElementNode

#doc, #element_name, #namespace

Instance Method Summary collapse

Methods inherited from ElementNode

#add_child, #attributes, #children, #clear_attribute, #create_element, #element, #ensure_element!, #prefix, #prefixed_attr_name, #set_attribute

Constructor Details

#initialize(width, doc:) ⇒ TableColumnProperties

Returns a new instance of TableColumnProperties.



11
12
13
14
15
# File 'lib/berkeley_library/util/ods/xml/style/table_row_properties.rb', line 11

def initialize(width, doc:)
  super(:style, 'table-column-properties', doc: doc)
  @width = width
  set_default_attributes!
end

Instance Attribute Details

#widthObject (readonly)

Returns the value of attribute width.



9
10
11
# File 'lib/berkeley_library/util/ods/xml/style/table_row_properties.rb', line 9

def width
  @width
end