Class: Coco::IndexContext

Inherits:
Object
  • Object
show all
Defined in:
lib/coco/formatter/context.rb

Overview

Contextual information for ERB template, representing index.html.

Instance Method Summary collapse

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_bindingObject



30
31
32
# File 'lib/coco/formatter/context.rb', line 30

def get_binding
	binding
end