method

lines

ruby latest stable - Class: Bundler::CompactIndexClient::Cache

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

lines(path)
private

No documentation available.

# File lib/bundler/compact_index_client/cache.rb, line 88
      def lines(path)
        return [] unless path.file?
        lines = SharedHelpers.filesystem_access(path, :read, &:read).split("\n")
        header = lines.index("---")
        header ? lines[header + 1..-1] : lines
      end