Class: IOStreams::SymmetricEncryption::Reader
- Defined in:
- lib/io_streams/symmetric_encryption/reader.rb
Instance Attribute Summary
Attributes inherited from Reader
Class Method Summary collapse
-
.stream(input_stream, **args, &block) ⇒ Object
read from a file/stream using Symmetric Encryption.
Methods inherited from Reader
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 |