Class: FTPMVC::GPG::Input
- Inherits:
-
Object
- Object
- FTPMVC::GPG::Input
- Includes:
- Input
- Defined in:
- lib/ftpmvc/gpg/input.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Input
constructor
A new instance of Input.
- #read ⇒ Object
Constructor Details
#initialize(data) ⇒ Input
Returns a new instance of Input.
9 10 11 |
# File 'lib/ftpmvc/gpg/input.rb', line 9 def initialize(data) @data = data end |
Instance Method Details
#read ⇒ Object
13 14 15 16 17 |
# File 'lib/ftpmvc/gpg/input.rb', line 13 def read while chunk = @data.read(GPGME::Data::BLOCK_SIZE) yield chunk end end |