Class: Osheet::TemplateSet

Inherits:
PartialSet show all
Defined in:
lib/osheet/template_set.rb

Instance Method Summary collapse

Methods inherited from PartialSet

#<<

Constructor Details

#initializeTemplateSet

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