Sha256: ba6b749d2f44dc5bc3564f5fd45d241716bcc4d0d7848967280a0d548d4e46e7

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true
module Binstream
  module Streams
    class StringReader < Base
      def initialize(path_or_io, **kwargs)
        if path_or_io.is_a?(::StringIO)
          super(path_or_io, **kwargs)
        else
          super(::StringIO.new(path_or_io, "rb"), **kwargs)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
binstream-1.0.0 lib/binstream/streams/string_reader.rb