class Osheet::WorkbookElement
Attributes
partials[R]
styles[R]
templates[R]
title[R]
worksheets[R]
Public Class Methods
new()
click to toggle source
# File lib/osheet/workbook_element.rb, line 19 def initialize @title = nil @templates = TemplateSet.new @partials = PartialSet.new @styles = StyleSet.new @worksheets = WorksheetSet.new end
Public Instance Methods
==(other)
click to toggle source
# File lib/osheet/workbook_element.rb, line 52 def ==(other) title == other.title && templates == other.templates && partials == other.partials && styles == other.styles && worksheets == other.worksheets end
partial(partial)
click to toggle source
# File lib/osheet/workbook_element.rb, line 36 def partial(partial) @partials << partial end
style(style)
click to toggle source
# File lib/osheet/workbook_element.rb, line 40 def style(style) @styles << style end
template(template)
click to toggle source
# File lib/osheet/workbook_element.rb, line 32 def template(template) @templates << template end
worksheet(worksheet)
click to toggle source
# File lib/osheet/workbook_element.rb, line 44 def worksheet(worksheet) @worksheets << worksheet end