class Covered::Root
Attributes
path[R]
Public Class Methods
new(output, path)
click to toggle source
Calls superclass method
# File lib/covered/files.rb, line 128 def initialize(output, path) super(output) @path = path end
Public Instance Methods
expand_path(path)
click to toggle source
Calls superclass method
# File lib/covered/files.rb, line 136 def expand_path(path) File.expand_path(super, @path) end
match?(path)
click to toggle source
# File lib/covered/files.rb, line 148 def match?(path) path.start_with?(@path) end
relative_path(path)
click to toggle source
Calls superclass method
# File lib/covered/files.rb, line 140 def relative_path(path) if path.start_with?(@path) path.slice(@path.size+1, path.size) else super end end