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, line 107
def dimensions
  [width, height] if width || height
end
height ()
[show source]
# File lib/shrine/plugins/store_dimensions.rb, line 103
def height
  Integer(metadata["height"]) if metadata["height"]
end
width ()
[show source]
# File lib/shrine/plugins/store_dimensions.rb, line 99
def width
  Integer(metadata["width"]) if metadata["width"]
end