Class: BerkeleyLibrary::Util::ODS::XML::Office::FontFaceDecls

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

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:) ⇒ FontFaceDecls

Returns a new instance of FontFaceDecls.



10
11
12
13
14
# File 'lib/berkeley_library/util/ods/xml/office/font_face_decls.rb', line 10

def initialize(doc:)
  super(:office, 'font-face-decls', doc: doc)

  add_font_face(default_face)
end

Instance Method Details

#add_font_face(font_face) ⇒ Object



16
17
18
# File 'lib/berkeley_library/util/ods/xml/office/font_face_decls.rb', line 16

def add_font_face(font_face)
  children << font_face
end