Sha256: 074d555e591e91536b86511fd3563c54ab739d721f4d27ee5567681879564c5b
Contents?: true
Size: 259 Bytes
Versions: 23
Compression:
Stored size: 259 Bytes
Contents
module Lookbook class DataUriEncoder < Service attr_reader :str, :mime_type def initialize(str, mime_type) @str = str @mime_type = mime_type end def call "data:#{mime_type},#{ERB::Util.url_encode(str)}" end end end
Version data entries
23 entries across 23 versions & 1 rubygems