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

- (MiniMagickWrapper) initialize(filename)

Returns a new instance of MiniMagickWrapper



321
322
323
# File 'lib/carrierwave/test/matchers.rb', line 321

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

Instance Attribute Details

- (Object) image (readonly)

Returns the value of attribute image



312
313
314
# File 'lib/carrierwave/test/matchers.rb', line 312

def image
  @image
end

Instance Method Details

- (Object) height



317
318
319
# File 'lib/carrierwave/test/matchers.rb', line 317

def height
  image[:height]
end

- (Object) width



313
314
315
# File 'lib/carrierwave/test/matchers.rb', line 313

def width
  image[:width]
end