Class: CarrierWave::Test::Matchers::MagickWrapper
- Inherits:
-
Object
- Object
- CarrierWave::Test::Matchers::MagickWrapper
- Defined in:
- lib/carrierwave/test/matchers.rb
Overview
:nodoc:
Instance Attribute Summary (collapse)
-
- (Object) image
readonly
Returns the value of attribute image.
Instance Method Summary (collapse)
- - (Object) height
-
- (MagickWrapper) initialize(filename)
constructor
A new instance of MagickWrapper.
- - (Object) width
Constructor Details
- (MagickWrapper) initialize(filename)
A new instance of MagickWrapper
218 219 220 |
# File 'lib/carrierwave/test/matchers.rb', line 218 def initialize(filename) @image = ::Magick::Image.read(filename).first end |
Instance Attribute Details
- (Object) image (readonly)
Returns the value of attribute image
209 210 211 |
# File 'lib/carrierwave/test/matchers.rb', line 209 def image @image end |
Instance Method Details
- (Object) height
214 215 216 |
# File 'lib/carrierwave/test/matchers.rb', line 214 def height image.rows end |
- (Object) width
210 211 212 |
# File 'lib/carrierwave/test/matchers.rb', line 210 def width image.columns end |