method
lines
v2_6_3 -
Show latest stable
- Class:
Bundler::CompactIndexClient::Cache
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