Class: MetricFu::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/base/base_template.rb

Overview

The Template class is intended as an abstract class for concrete template classes to subclass. It provides a variety of utility methods to make templating a bit easier. However, classes do not have to inherit from here in order to provide a template. The only requirement for a template class is that it provides a #write method to actually write out the template. See StandardTemplate for an example.

Direct Known Subclasses

AwesomeTemplate, StandardTemplate

Instance Attribute Summary collapse

Instance Attribute Details

#reportObject

Returns the value of attribute report.



11
12
13
# File 'lib/base/base_template.rb', line 11

def report
  @report
end