module Imgproxy::OptionsCasters::Gravity
Casts gravity option
Constants
- CASTER
Public Class Methods
cast(raw)
click to toggle source
# File lib/imgproxy/options_casters/gravity.rb, line 15 def self.cast(raw) return raw unless raw.is_a?(Hash) return unless raw[:type] CASTER.cast(raw) end