Class: Osheet::TemplateSet
- Inherits:
-
PartialSet
- Object
- Hash
- PartialSet
- Osheet::TemplateSet
- Defined in:
- lib/osheet/template_set.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 using a key of
11 12 13 |
# File 'lib/osheet/template_set.rb', line 11 def initialize super end |
Instance Method Details
#get(element, name) ⇒ Object
return the template set for the named element
16 17 18 |
# File 'lib/osheet/template_set.rb', line 16 def get(element, name) lookup(key(element.to_s, name.to_s)) end |