Class: Osheet::WorkbookElement::TemplateSet
- Inherits:
-
PartialSet
- Object
- Hash
- PartialSet
- Osheet::WorkbookElement::TemplateSet
- Defined in:
- lib/osheet/workbook_element.rb,
lib/osheet/workbook_element.rb
Instance Method Summary collapse
-
#get(element, name) ⇒ Object
return the template set for the named element.
-
#initialize ⇒ TemplateSet
constructor
this class is a PartialSet that keys off of the template element and name.
Methods inherited from PartialSet
Constructor Details
#initialize ⇒ TemplateSet
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
122 123 124 |
# File 'lib/osheet/workbook_element.rb', line 122 def initialize super end |
Instance Method Details
#get(element, name) ⇒ Object
return the template set for the named element
127 128 129 |
# File 'lib/osheet/workbook_element.rb', line 127 def get(element, name) lookup(key(element.to_s, name.to_s)) end |