lib/guard/cucumber/inspector.rb
# Checks if the given path is already contained
# in the paths list.
#
# @param [Sting] path the path to test
# @param [Array<String>] paths the list of paths
#
Checks if the given path is already contained
in the paths list.
Checks if the given path is already contained in the paths list .
def included_in_other_path?(path, paths)
          paths = paths.select { |p| p != path }
          massaged = path[0...(path.index(":") || path.size)]
          paths.any? { |p| _path_includes(path, p, massaged) }
        end
def included_in_other_path? ( path , paths ) paths = paths . select { | p | p != path } massaged = path [ 0 ... ( path . index ( ":" ) || path . size ) ] paths . any? { | p | _path_includes ( path , p , massaged ) } end
Checks if the given path is already contained
in the paths list.
Checks if the given path is already contained in the paths list .
path
paths
paths the list of paths
paths the list of paths