Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

String#unpack

unpack(template, offset: 0) → array

Extracts data from self, forming objects that become the elements of a new array; returns that array. See Packed Data.

Ruby version changes

  1. 3.3
  2. 3.1