Class: BerkeleyLibrary::Util::ODS::XML::Office::Spreadsheet
- Inherits:
-
ElementNode
- Object
- ElementNode
- BerkeleyLibrary::Util::ODS::XML::Office::Spreadsheet
show all
- Defined in:
- lib/berkeley_library/util/ods/xml/office/spreadsheet.rb
Instance Attribute Summary
Attributes inherited from ElementNode
#doc, #element_name, #namespace
Instance Method Summary
collapse
Methods inherited from ElementNode
#attributes, #clear_attribute, #create_element, #element, #ensure_element!, #prefix, #prefixed_attr_name, #set_attribute
Constructor Details
10
11
12
|
# File 'lib/berkeley_library/util/ods/xml/office/spreadsheet.rb', line 10
def initialize(doc:)
super(:office, 'spreadsheet', doc: doc)
end
|
Instance Method Details
#add_child(child) ⇒ Object
18
19
20
|
# File 'lib/berkeley_library/util/ods/xml/office/spreadsheet.rb', line 18
def add_child(child)
other_children << child
end
|
#children ⇒ Object
22
23
24
|
# 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 ⇒ Object
14
15
16
|
# File 'lib/berkeley_library/util/ods/xml/office/spreadsheet.rb', line 14
def named_expressions
@named_expressions ||= Table::NamedExpressions.new(doc: doc)
end
|