lib/coverband/utils/file_path_helper.rb
def full_path_to_relative(full_path)
        relative_filename = full_path
        Coverband.configuration.all_root_paths.each do |root|
          relative_filename = relative_filename.gsub(/^#{root}/, './')
          # once we have a relative path break out of the loop
          break if relative_filename.start_with? './'
        end
        relative_filename
      end
###
# Takes a full path and converts to a relative path
###
Takes a full path and converts to a relative path
Takes a full path and converts to a relative path
def full_path_to_relative(full_path)
        relative_filename = full_path
        Coverband.configuration.all_root_paths.each do |root|
          relative_filename = relative_filename.gsub(/^#{root}/, './')
          break if relative_filename.start_with? './'
        end
        relative_filename
      end
def full_path_to_relative ( full_path ) relative_filename = full_path Coverband . configuration . all_root_paths . each do | root | relative_filename = relative_filename . gsub ( / ^ #{ root } / , './' ) break if relative_filename . start_with? './' end relative_filename end
Takes a full path and converts to a relative path
Takes a full path and converts to a relative path
# once we have a relative path break out of the loop
full_path