Sha256: 05fe2fa7ef846509430079375696806324547a26ddb572d9d37b6b789d01c73f

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

module IOStreams
  module SymmetricEncryption
    class Reader < IOStreams::Reader
      # read from a file/stream using Symmetric Encryption
      def self.stream(input_stream, **args, &block)
        unless defined?(SymmetricEncryption)
          Utils.load_dependency('symmetric-encryption', '.enc streaming')
        end

        ::SymmetricEncryption::Reader.open(input_stream, **args, &block)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iostreams-1.0.0.beta2 lib/io_streams/symmetric_encryption/reader.rb
iostreams-1.0.0.beta lib/io_streams/symmetric_encryption/reader.rb