Class: CarrierWave::Test::Matchers::MiniMagickWrapper
- Inherits:
-
Object
- Object
- CarrierWave::Test::Matchers::MiniMagickWrapper
- 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) ⇒ MiniMagickWrapper
constructor
A new instance of MiniMagickWrapper.
- #width ⇒ Object
Constructor Details
#initialize(filename) ⇒ MiniMagickWrapper
Returns a new instance of MiniMagickWrapper.
391 392 393 |
# File 'lib/carrierwave/test/matchers.rb', line 391 def initialize(filename) @image = ::MiniMagick::Image.open(filename) end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
377 378 379 |
# File 'lib/carrierwave/test/matchers.rb', line 377 def image @image end |
Instance Method Details
#format ⇒ Object
387 388 389 |
# File 'lib/carrierwave/test/matchers.rb', line 387 def format image[:format] end |
#height ⇒ Object
383 384 385 |
# File 'lib/carrierwave/test/matchers.rb', line 383 def height image[:height] end |
#width ⇒ Object
379 380 381 |
# File 'lib/carrierwave/test/matchers.rb', line 379 def width image[:width] end |