class Shrine::DataFile
Attributes
Public Class Methods
# File lib/shrine/plugins/data_uri.rb 184 def initialize(content, content_type: nil, filename: nil) 185 @content_type = content_type 186 @original_filename = filename 187 @io = StringIO.new(content) 188 end
Public Instance Methods
Source
# File lib/shrine/plugins/data_uri.rb 197 def close 198 @io.close 199 @io.string.clear # deallocate string 200 end