lib/guard/listener.rb
# Scopes all given paths to the current directory.
#
# @param [Array<String>] paths the paths to change
# @return [Array<String>] all paths now relative to the current dir
#
Scopes all given paths to the current directory.
Scopes all given paths to the current directory .
def relativize_paths(paths)
      return paths unless relativize_paths?
      paths.map do |path|
        path.gsub(%r{^#{ @directory }/}, '')
      end
    end
def relativize_paths ( paths ) return paths unless relativize_paths? paths . map do | path | path . gsub ( %r{ ^ #{ @directory } / } , '' ) end end
Scopes all given paths to the current directory.
Scopes all given paths to the current directory .
all paths now relative to the current dir
all paths now relative to the current dir
Array<String>
paths
paths the paths to change
paths the paths to change