Exception: SpriteFactory::Library::ImageMagick::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sprite_factory/library/image_magick.rb

Overview

Represents an error from an underlying ImageMagick call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, command, args, output) ⇒ Error

Returns a new instance of Error.



11
12
13
14
15
16
# File 'lib/sprite_factory/library/image_magick.rb', line 11

def initialize(msg, command, args, output)
  super(msg)
  @command = command
  @args = args
  @output = output
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



8
9
10
# File 'lib/sprite_factory/library/image_magick.rb', line 8

def args
  @args
end

#commandObject (readonly)

Returns the value of attribute command.



7
8
9
# File 'lib/sprite_factory/library/image_magick.rb', line 7

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



9
10
11
# File 'lib/sprite_factory/library/image_magick.rb', line 9

def output
  @output
end