class Coco::IndexContext
Contextual information for ERB template, representing index.html.
Public Class Methods
new(title, all, uncovered, summary, threshold)
click to toggle source
Public: Initialize an IndexContext
for the index file in the HTML report.
title - The String title for the report. all - Array of subarrays. Each subarray is:
[ Fixnum coverage percentage, String formatted filename (HTML ready), String real filename ]
uncovered - Array of String filenames. The filenames are already
formatted, ready to be display in an HTML file.
summary - A Summary
object. threshold - Fixnum.
# File lib/coco/formatter/index_context.rb, line 22 def initialize(title, all, uncovered, summary, threshold) @title = title @covered, @greens = all.partition { |file| file.first < threshold } @uncovered = uncovered @summary = summary end
Public Instance Methods
variables()
click to toggle source
Public: Get the object's binding.
Returns Binding.
# File lib/coco/formatter/index_context.rb, line 33 def variables binding end