# File lib/dragonfly/temp_object.rb, line 93 def tempfile raise Closed, "can't read from tempfile as TempObject has been closed" if closed? @tempfile ||= begin case when @data @tempfile = new_tempfile(@data) when @pathname @tempfile = copy_to_tempfile(@pathname.expand_path) end @tempfile end end