Module IOStream
In: lib/paperclip/iostream.rb

Provides method that can be included on File-type objects (IO, StringIO, Tempfile, etc) to allow stream copying and Tempfile conversion.

Methods

Public Instance methods

Copies one read-able object from one place to another in blocks, obviating the need to load the whole thing into memory. Defaults to 8k blocks. Returns a File if a String is passed in as the destination and returns the IO or Tempfile as passed in if one is sent as the destination.

Returns a Tempfile containing the contents of the readable object.

[Validate]