class Shrine::DataFile
Attributes
Public Class Methods
# File lib/shrine/plugins/data_uri.rb 159 def initialize(content, content_type: nil, filename: nil) 160 @content_type = content_type 161 @original_filename = filename 162 @io = StringIO.new(content) 163 end
Public Instance Methods
Source
# File lib/shrine/plugins/data_uri.rb 172 def close 173 @io.close 174 @io.string.clear # deallocate string 175 end