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)

A new instance of MiniMagickWrapper



156
157
158
# File 'lib/carrierwave/test/matchers.rb', line 156

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

Instance Attribute Details

- (Object) image (readonly)

Returns the value of attribute image



147
148
149
# File 'lib/carrierwave/test/matchers.rb', line 147

def image
  @image
end

Instance Method Details

- (Object) height



152
153
154
# File 'lib/carrierwave/test/matchers.rb', line 152

def height
  image[:height]
end

- (Object) width



148
149
150
# File 'lib/carrierwave/test/matchers.rb', line 148

def width
  image[:width]
end