module Imgproxy::OptionsCasters::Base64

Casts string option to base64

Public Class Methods

cast(raw) click to toggle source
# File lib/imgproxy/options_casters/base64.rb, line 7
def self.cast(raw)
  ::Base64.urlsafe_encode64(raw.to_s).tr("=", "") unless raw.nil?
end