Class: CarrierWave::Test::Matchers::MiniMagickWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/carrierwave/test/matchers.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ MiniMagickWrapper

Returns a new instance of MiniMagickWrapper



348
349
350
# File 'lib/carrierwave/test/matchers.rb', line 348

def initialize(filename)
  @image = ::MiniMagick::Image.open(filename)
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image



339
340
341
# File 'lib/carrierwave/test/matchers.rb', line 339

def image
  @image
end

Instance Method Details

#heightObject



344
345
346
# File 'lib/carrierwave/test/matchers.rb', line 344

def height
  image[:height]
end

#widthObject



340
341
342
# File 'lib/carrierwave/test/matchers.rb', line 340

def width
  image[:width]
end