Class: Braai::Template
- Inherits:
-
Object
- Object
- Braai::Template
- Extended by:
- Matchers
- Includes:
- Matchers
- Defined in:
- lib/braai/template.rb
Constant Summary
Constants included from Matchers
Matchers::ConditionalMatcher, Matchers::DefaultMatcher, Matchers::IterationMatcher, Matchers::RegionMatcher
Instance Attribute Summary collapse
-
#template ⇒ Object
Returns the value of attribute template.
Attributes included from Matchers
Instance Method Summary collapse
-
#initialize(template, matchers = {}) ⇒ Template
constructor
A new instance of Template.
- #render(attributes = {}) ⇒ Object
Methods included from Matchers
add_fallback, clear!, map, matchers, reset!, set_defaults, unmap
Constructor Details
#initialize(template, matchers = {}) ⇒ Template
Returns a new instance of Template.
7 8 9 10 11 |
# File 'lib/braai/template.rb', line 7 def initialize(template, matchers = {}) @matchers = self.class.matchers.merge(matchers) @template = template @fallback = self.class.fallback end |
Instance Attribute Details
#template ⇒ Object
Returns the value of attribute template.
5 6 7 |
# File 'lib/braai/template.rb', line 5 def template @template end |