Class: Coco::IndexContext
- Inherits:
-
Object
- Object
- Coco::IndexContext
- Defined in:
- lib/coco/formatter/context.rb
Overview
Contextual information for ERB template, representing index.html.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(title, covered, uncovered) ⇒ IndexContext
constructor
A new instance of IndexContext.
Constructor Details
#initialize(title, covered, uncovered) ⇒ IndexContext
TODO:
doc, inheritance (with Context)
Returns a new instance of IndexContext.
24 25 26 27 28 |
# File 'lib/coco/formatter/context.rb', line 24 def initialize title, covered, uncovered @title = title @covered = covered @uncovered = uncovered end |
Instance Method Details
#get_binding ⇒ Object
30 31 32 |
# File 'lib/coco/formatter/context.rb', line 30 def get_binding binding end |