class BerkeleyLibrary::Util::ODS::XML::Office::Spreadsheet

Public Class Methods

new(doc:) click to toggle source
# File lib/berkeley_library/util/ods/xml/office/spreadsheet.rb, line 10
def initialize(doc:)
  super(:office, 'spreadsheet', doc: doc)
end

Public Instance Methods

add_child(child) click to toggle source
# File lib/berkeley_library/util/ods/xml/office/spreadsheet.rb, line 18
def add_child(child)
  other_children << child
end
children() click to toggle source
# File lib/berkeley_library/util/ods/xml/office/spreadsheet.rb, line 22
def children
  other_children.dup.tap { |cc| cc << named_expressions }
end
named_expressions() click to toggle source
# File lib/berkeley_library/util/ods/xml/office/spreadsheet.rb, line 14
def named_expressions
  @named_expressions ||= Table::NamedExpressions.new(doc: doc)
end

Private Instance Methods

other_children() click to toggle source
# File lib/berkeley_library/util/ods/xml/office/spreadsheet.rb, line 28
def other_children
  @other_children ||= []
end