Class: FTPMVC::Async::Upload::Input
- Inherits:
-
Object
- Object
- FTPMVC::Async::Upload::Input
- Includes:
- Input
- Defined in:
- lib/ftpmvc/async/upload/input.rb
Instance Method Summary collapse
-
#initialize(id) ⇒ Input
constructor
A new instance of Input.
- #read ⇒ Object
Constructor Details
#initialize(id) ⇒ Input
11 12 13 |
# File 'lib/ftpmvc/async/upload/input.rb', line 11 def initialize(id) @file = FTPMVC::Async::Upload.storage[id] end |
Instance Method Details
#read ⇒ Object
15 16 17 |
# File 'lib/ftpmvc/async/upload/input.rb', line 15 def read @file.read { |chunk| yield chunk } end |