Class: FTPMVC::GPG::Input

Inherits:
Object
  • Object
show all
Includes:
Input
Defined in:
lib/ftpmvc/gpg/input.rb

Instance Method Summary collapse

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

#readObject



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