Class: CarrierWave::Test::Matchers::MiniMagickWrapper
- Inherits:
-
Object
- Object
- CarrierWave::Test::Matchers::MiniMagickWrapper
- Defined in:
- lib/carrierwave/test/matchers.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
Instance Method Summary collapse
- #height ⇒ Object
-
#initialize(filename) ⇒ MiniMagickWrapper
constructor
A new instance of MiniMagickWrapper.
- #width ⇒ Object
Constructor Details
#initialize(filename) ⇒ MiniMagickWrapper
Returns a new instance of MiniMagickWrapper.
233 234 235 |
# File 'lib/carrierwave/test/matchers.rb', line 233 def initialize(filename) @image = ::MiniMagick::Image.open(filename) end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
224 225 226 |
# File 'lib/carrierwave/test/matchers.rb', line 224 def image @image end |
Instance Method Details
#height ⇒ Object
229 230 231 |
# File 'lib/carrierwave/test/matchers.rb', line 229 def height image[:height] end |
#width ⇒ Object
225 226 227 |
# File 'lib/carrierwave/test/matchers.rb', line 225 def width image[:width] end |