Class: BerkeleyLibrary::Util::ODS::XML::Office::DocumentStyles
- Inherits:
-
ElementNode
- Object
- ElementNode
- BerkeleyLibrary::Util::ODS::XML::Office::DocumentStyles
- 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
-
#initialize(doc:) ⇒ DocumentStyles
constructor
A new instance of DocumentStyles.
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 |