class Lookbook::FileDataUriEncoder
def call
def call DataUriEncoder.call(content, mime_type) end
def content
def content File.read(path) end
def initialize(path, mime_type = nil)
def initialize(path, mime_type = nil) @path = path @mime_type = mime_type end
def mime_type
def mime_type @mime_type || Marcel::MimeType.for(Pathname.new(path)) end