Class: MogileFS::Util::StoreContent

Inherits:
Proc
  • Object
show all
Defined in:
lib/mogilefs/util.rb

Instance Method Summary collapse

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

#lengthObject



98
99
100
# File 'lib/mogilefs/util.rb', line 98

def length
  @total_size
end