method
slice_body
v2_6_3 -
Show latest stable
- Class:
Bundler::CompactIndexClient::Updater
slice_body(body, range)public
No documentation available.
# File lib/bundler/compact_index_client/updater.rb, line 97
def slice_body(body, range)
if body.respond_to?(:byteslice)
body.byteslice(range)
else # pre-1.9.3
body.unpack("@#{range.first}a#{range.end + 1}").first
end
end