# File lib/facets/core/dir/self/ancestor.rb, line 8 def self.ancestor?(parent_path, child_path) %r|^#{Regexp.escape(parent_path)}| =~ child_path end