Method: Milton::Storage::StoredFile#clone

Defined in:
lib/milton/storage/stored_file.rb

#clone(filename) ⇒ Object

Creates a clone of this StoredFile of the same type with the same id and options but using the given filename. Doesn’t actually do any copying of the underlying file data.



41
42
43
# File 'lib/milton/storage/stored_file.rb', line 41

def clone(filename)
  self.class.new(filename, self.id, self.options)
end