Exception: PhotoCook::DevicePixelRatio::OutOfBounds
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- PhotoCook::DevicePixelRatio::OutOfBounds
- Defined in:
- lib/photo-cook/device-pixel-ratio.rb
Instance Method Summary collapse
-
#initialize ⇒ OutOfBounds
constructor
A new instance of OutOfBounds.
Constructor Details
#initialize ⇒ OutOfBounds
Returns a new instance of OutOfBounds.
53 54 55 56 |
# File 'lib/photo-cook/device-pixel-ratio.rb', line 53 def initialize(*) super 'Device pixel ratio must be positive number (integer or float) ' + "which satisfies #{DEFAULT} <= x <= #{MAX}" end |