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
91 def dimensions
92   [width, height] if width || height
93 end
height ()
[show source]
   # File lib/shrine/plugins/store_dimensions.rb
87 def height
88   Integer(metadata["height"]) if metadata["height"]
89 end
width ()
[show source]
   # File lib/shrine/plugins/store_dimensions.rb
83 def width
84   Integer(metadata["width"]) if metadata["width"]
85 end