method

longest_common_subpath

rails latest stable - Class: ActiveSupport::EventedFileUpdateChecker::PathHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

longest_common_subpath(paths)
public

Given a collection of Pathname objects returns the longest subpath common to all of them, or nil if there is none.