Sha256: 9c451b8a72208739a7c70ed243e7310a0909f595a218df58574639d538325c39

Contents?: true

Size: 395 Bytes

Versions: 3

Compression:

Stored size: 395 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, decode_format=BASE_64)
        super(StringIO.new(string), 0, string.length, unpack_format, decode_format)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ms-core-0.0.2 lib/ms/data/lazy_string.rb
ms-core-0.0.1 lib/ms/data/lazy_string.rb
mspire-0.5.0 lib/ms/data/lazy_string.rb