Exception: ArTTY::Error::ImageNamedImproperly
- Inherits:
-
ArTTY::Error
- Object
- RuntimeError
- ArTTY::Error
- ArTTY::Error::ImageNamedImproperly
- Defined in:
- lib/arTTY/error/image_named_improperly.rb
Instance Method Summary collapse
-
#initialize(fn = nil) ⇒ ImageNamedImproperly
constructor
A new instance of ImageNamedImproperly.
Constructor Details
#initialize(fn = nil) ⇒ ImageNamedImproperly
Returns a new instance of ImageNamedImproperly.
2 3 4 5 |
# File 'lib/arTTY/error/image_named_improperly.rb', line 2 def initialize(fn = nil) super("Image named wrong: #{fn}") if (fn && !fn.empty?) super("Image named wrong") if (fn.nil?) end |