class BerkeleyLibrary::Util::ODS::XML::Office::FontFaceDecls

Public Class Methods

new(doc:) click to toggle source
# 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

Public Instance Methods

add_font_face(font_face) click to toggle source
# File lib/berkeley_library/util/ods/xml/office/font_face_decls.rb, line 16
def add_font_face(font_face)
  children << font_face
end

Private Instance Methods

default_face() click to toggle source
# File lib/berkeley_library/util/ods/xml/office/font_face_decls.rb, line 22
def default_face
  Style::FontFace.default_face(doc: doc)
end