Class: Axlsx::WorkbookViews
- Inherits:
-
SimpleTypedList
- Object
- SimpleTypedList
- Axlsx::WorkbookViews
- Defined in:
- lib/axlsx/workbook/workbook_views.rb
Overview
a simple types list of BookView objects
Instance Method Summary collapse
-
#initialize ⇒ WorkbookViews
constructor
creates the book views object.
-
#to_xml_string(str = '') ⇒ String
Serialize to xml.
Constructor Details
#initialize ⇒ WorkbookViews
creates the book views object
6 7 8 |
# File 'lib/axlsx/workbook/workbook_views.rb', line 6 def initialize super WorkbookView end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
Serialize to xml
13 14 15 16 17 18 |
# File 'lib/axlsx/workbook/workbook_views.rb', line 13 def to_xml_string(str = '') return if empty? str << "<bookViews>" each { |view| view.to_xml_string(str) } str << '</bookViews>' end |