class Coco::Context

Contextual information for ERB template, representing each covered files.

Public Class Methods

new(filename, lines) click to toggle source

Public: Initialize a Context for a covered file shown in the HTML report.

filename - A String name of the source file. lines - An Array of lines.

# File lib/coco/formatter/context.rb, line 13
def initialize(filename, lines)
  @filename = filename
  @lines = lines
end

Public Instance Methods

variables() click to toggle source

Public: Get the object's binding.

Returns Binding.

# File lib/coco/formatter/context.rb, line 22
def variables
  binding
end