Module: Imgproxy::OptionsCasters::Blurhash
- Defined in:
- lib/imgproxy/options_casters/blurhash.rb
Overview
Casts ‘blurhash` info option
Constant Summary collapse
- CASTER =
Imgproxy::OptionsCasters::Group.new( x_components: Imgproxy::OptionsCasters::Integer, y_components: Imgproxy::OptionsCasters::Integer, ).freeze
Class Method Summary collapse
Class Method Details
.cast(raw) ⇒ Object
15 16 17 18 |
# File 'lib/imgproxy/options_casters/blurhash.rb', line 15 def self.cast(raw) return raw unless raw.is_a?(Hash) CASTER.cast(raw) end |