class RuboCop::Cop::Rails::RootPathnameMethods
def evidence(node)
def evidence(node) return if node.method?(:open) && node.parent&.send_type? return unless (method, path, args = pathname_method(node)) && (rails_root = rails_root_pathname?(path)) yield(method, path, args, rails_root) end