class StringIO
Define an utility instance method for the String core class.
Public Instance Methods
read_unpacked(size, format)
click to toggle source
Read size bytes and return the first unpacked value given a format.
# File lib/gibson/gibson.rb, line 10 def read_unpacked size, format read( size ).unpack( format )[0] end