module Shrine::Plugins::StoreDimensions::FileMethods

  1. lib/shrine/plugins/store_dimensions.rb

Methods

Public Instance

  1. dimensions
  2. height
  3. width

Public Instance methods

dimensions()
[show source]
   # File lib/shrine/plugins/store_dimensions.rb
93 def dimensions
94   [width, height] if width || height
95 end
height()
[show source]
   # File lib/shrine/plugins/store_dimensions.rb
89 def height
90   Integer(metadata["height"]) if metadata["height"]
91 end
width()
[show source]
   # File lib/shrine/plugins/store_dimensions.rb
85 def width
86   Integer(metadata["width"]) if metadata["width"]
87 end