Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.1