class Covered::Skip
Attributes
pattern[R]
Public Class Methods
new(output, pattern)
click to toggle source
Calls superclass method
# File lib/covered/files.rb, line 93 def initialize(output, pattern) super(output) @pattern = pattern end
Public Instance Methods
match?(path)
click to toggle source
This is better as it doesn’t allocate a MatchData instance which is essentially useless.
# File lib/covered/files.rb, line 103 def match? path !@pattern.match?(path) end