module Shrine::Plugins::Tempfile::FileMethods

  1. lib/shrine/plugins/tempfile.rb

Methods

Public Instance

  1. close
  2. tempfile

Public Instance methods

close()
[show source]
   # File lib/shrine/plugins/tempfile.rb
29 def close
30   super
31 
32   @tempfile.close! if @tempfile
33   @tempfile = nil
34 end
tempfile()
[show source]
   # File lib/shrine/plugins/tempfile.rb
21 def tempfile
22   raise Error, "uploaded file must be opened" unless @io
23 
24   @tempfile ||= download
25   @tempfile.rewind
26   @tempfile
27 end