Attributes
content_type | [R] | |
original_filename | [R] |
Public Class methods
new(content, content_type: nil, filename: nil)
[show source]
# 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
close()
[show source]
# File lib/shrine/plugins/data_uri.rb 172 def close 173 @io.close 174 @io.string.clear # deallocate string 175 end