method

slice_body

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

Method not available on this version

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

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