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
-
#image ⇒ Object
readonly
Returns the value of attribute image.
Instance Method Summary collapse
- #format ⇒ Object
- #height ⇒ Object
-
#initialize(filename) ⇒ MagickWrapper
constructor
A new instance of MagickWrapper.
- #width ⇒ Object
Constructor Details
#initialize(filename) ⇒ MagickWrapper
Returns a new instance of MagickWrapper.
368 369 370 |
# File 'lib/carrierwave/test/matchers.rb', line 368 def initialize(filename) @image = ::Magick::Image.read(filename).first end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
355 356 357 |
# File 'lib/carrierwave/test/matchers.rb', line 355 def image @image end |
Instance Method Details
#format ⇒ Object
364 365 366 |
# File 'lib/carrierwave/test/matchers.rb', line 364 def format image.format end |
#height ⇒ Object
360 361 362 |
# File 'lib/carrierwave/test/matchers.rb', line 360 def height image.rows end |
#width ⇒ Object
356 357 358 |
# File 'lib/carrierwave/test/matchers.rb', line 356 def width image.columns end |