module Shrine::Plugins::Tempfile::FileMethods
Public Instance Methods
close()
click to toggle source
Calls superclass method
# File lib/shrine/plugins/tempfile.rb, line 29 def close super @tempfile.close! if @tempfile @tempfile = nil end
tempfile()
click to toggle source
# File lib/shrine/plugins/tempfile.rb, line 21 def tempfile raise Error, "uploaded file must be opened" unless @io @tempfile ||= download @tempfile.rewind @tempfile end