Class: MogileFS::Util::StoreContent
- Inherits:
-
Proc
- Object
- Proc
- MogileFS::Util::StoreContent
- Defined in:
- lib/mogilefs/util.rb
Instance Method Summary collapse
-
#initialize(total_size, &writer_proc) ⇒ StoreContent
constructor
A new instance of StoreContent.
- #length ⇒ Object
Constructor Details
#initialize(total_size, &writer_proc) ⇒ StoreContent
Returns a new instance of StoreContent.
94 95 96 97 |
# File 'lib/mogilefs/util.rb', line 94 def initialize(total_size, &writer_proc) @total_size = total_size super(&writer_proc) end |
Instance Method Details
#length ⇒ Object
98 99 100 |
# File 'lib/mogilefs/util.rb', line 98 def length @total_size end |