Class: BerkeleyLibrary::Util::ODS::XML::Office::Spreadsheet
- Inherits:
-
ElementNode
- Object
- ElementNode
- BerkeleyLibrary::Util::ODS::XML::Office::Spreadsheet
- 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
- #add_child(child) ⇒ Object
- #children ⇒ Object
-
#initialize(doc:) ⇒ Spreadsheet
constructor
A new instance of Spreadsheet.
- #named_expressions ⇒ Object
Methods inherited from ElementNode
#attributes, #clear_attribute, #create_element, #element, #ensure_element!, #prefix, #prefixed_attr_name, #set_attribute
Constructor Details
#initialize(doc:) ⇒ Spreadsheet
Returns a new instance of Spreadsheet.
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 |