class Covered::Only

Attributes

pattern[R]

Public Class Methods

new(output, pattern) click to toggle source
Calls superclass method
# File lib/covered/files.rb, line 114
def initialize(output, pattern)
        super(output)
        
        @pattern = pattern
end

Public Instance Methods

match?(path) click to toggle source
# File lib/covered/files.rb, line 122
def match?(path)
        @pattern === path
end