Module: Shrine::Plugins::StoreDimensions::InstanceMethods
- Defined in:
- lib/shrine/plugins/store_dimensions.rb
Instance Method Summary collapse
-
#extract_metadata(io, **options) ⇒ Object
We update the metadata with “width” and “height”.
Instance Method Details
#extract_metadata(io, **options) ⇒ Object
We update the metadata with “width” and “height”.
75 76 77 78 79 |
# File 'lib/shrine/plugins/store_dimensions.rb', line 75 def (io, **) width, height = self.class.extract_dimensions(io) super.merge!("width" => width, "height" => height) end |