Sha256: 6b1fd12d7ca8448d92756638e6867dff5db81a59259c395076ea578c2e94c061

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

module Coco

  # Contextual information for ERB template, representing each covered files.
  #
  class Context

    # 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.
    #
    def initialize(filename, lines)
      @filename = filename
      @lines = lines
    end

    # Public: Get the object's binding.
    #
    # Returns Binding.
    #
    def variables
      binding
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coco-0.15.0 lib/coco/formatter/context.rb
coco-0.14.0 lib/coco/formatter/context.rb