Class: IOStreams::SymmetricEncryption::Reader

Inherits:
Reader
  • Object
show all
Defined in:
lib/io_streams/symmetric_encryption/reader.rb

Instance Attribute Summary

Attributes inherited from Reader

#input_stream

Class Method Summary collapse

Methods inherited from Reader

file, #initialize, open

Constructor Details

This class inherits a constructor from IOStreams::Reader

Class Method Details

.stream(input_stream, **args, &block) ⇒ Object

read from a file/stream using Symmetric Encryption



5
6
7
8
9
10
11
# File 'lib/io_streams/symmetric_encryption/reader.rb', line 5

def self.stream(input_stream, **args, &block)
  unless defined?(SymmetricEncryption)
    Utils.load_soft_dependency('symmetric-encryption', '.enc streaming')
  end

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