lib/osheet/workbook_element.rb in osheet-1.0.0.rc.4 vs lib/osheet/workbook_element.rb in osheet-1.0.0

- old
+ new

@@ -1,11 +1,10 @@ require 'osheet/style' require 'osheet/worksheet' module Osheet - class WorkbookElement # This 'WorkbookElement' class handles all workbook state. It is setup # and referenced by the 'Workbook' class when it runs builds @@ -58,12 +57,10 @@ worksheets == other.worksheets end end - - class WorkbookElement::PartialSet # this class is a Hash that behaves kinda like a set. I want to # push partials into the set using the '<<' operator, only allow # Osheet::Partial objs to be pushed, and then be able to reference @@ -114,12 +111,10 @@ name.to_s end end - - class WorkbookElement::TemplateSet < WorkbookElement::PartialSet # this class is a PartialSet that keys off of the template element # and name. Only Osheet::Template objs can be pushed, and you reference # a particular template by its element and name @@ -164,12 +159,10 @@ [element.to_s, name.to_s] end end - - class WorkbookElement::StyleSet < ::Array # this class is an Array with some helper methods. I want to # push styles into the set using the '<<' operator, only allow # Osheet::Style objs to be pushed, and then be able to reference @@ -199,12 +192,10 @@ end end end - - class WorkbookElement::WorksheetSet < ::Array # this class is just a wrapper to Array. I want to push worksheets # into the set using the '<<' operator, but only allow Worksheet objs # to be pushed. @@ -227,8 +218,7 @@ raise ArgumentError, 'can only push Osheet::Worksheet to the set' end end end - end