diff options
Diffstat (limited to 'lib/axlsx/workbook/workbook_views.rb')
| -rw-r--r-- | lib/axlsx/workbook/workbook_views.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/axlsx/workbook/workbook_views.rb b/lib/axlsx/workbook/workbook_views.rb new file mode 100644 index 00000000..4e69f19e --- /dev/null +++ b/lib/axlsx/workbook/workbook_views.rb @@ -0,0 +1,22 @@ +module Axlsx + # a simple types list of BookView objects + class WorkbookViews < SimpleTypedList + + # creates the book views object + def initialize + super WorkbookView + end + + # Serialize to xml + # @param [String] str + # @return [String] + def to_xml_string(str = '') + return if @list.empty? + str << "<bookViews>" + each { |view| view.to_xml_string(str) } + str << '</bookViews>' + end + end +end + + |
