Class: BerkeleyLibrary::Util::ODS::XML::Office::DocumentStyles

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

Constant Summary collapse

REQUIRED_NAMESPACES =
%i[office style fo].freeze

Instance Attribute Summary

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(doc:) ⇒ DocumentStyles

Returns a new instance of DocumentStyles.



13
14
15
16
17
18
# File 'lib/berkeley_library/util/ods/xml/office/document_styles.rb', line 13

def initialize(doc:)
  super(:office, 'document-styles', doc: doc)

  set_default_attributes!
  add_default_children!
end