Sha256: 31a1e484a27f00584ce7e623f9d8ef035c254f70913d0e4c3a582f5e346ce873
Contents?: true
Size: 428 Bytes
Versions: 14
Compression:
Stored size: 428 Bytes
Contents
require 'ms/data/lazy_io' require 'stringio' module Ms module Data # LazyString is a LazyIO initialized from a string, which is converted into # a StringIO. class LazyString < LazyIO def initialize(string, unpack_format=NETWORK_FLOAT, compression=false, decode_format=BASE_64) super(StringIO.new(string), 0, string.length, unpack_format, compression, decode_format) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems