Class: Morandi::ImageOp
- Inherits:
-
Object
- Object
- Morandi::ImageOp
- Defined in:
- lib/morandi/image-ops.rb
Direct Known Subclasses
Colourify, Crop, Gamma, ImageBorder, ImageCaption, RedEyeOp, Rotate, Straighten
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ImageOp
constructor
A new instance of ImageOp.
- #priority ⇒ Object
Constructor Details
#initialize ⇒ ImageOp
Returns a new instance of ImageOp.
15 16 |
# File 'lib/morandi/image-ops.rb', line 15 def initialize() end |
Class Method Details
.new_from_hash(hash) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/morandi/image-ops.rb', line 7 def new_from_hash(hash) op = allocate() hash.each_pair do |key,val| op.instance_variable_set("@#{key}", val) if op.respond_to?(key.intern) end op end |
Instance Method Details
#priority ⇒ Object
17 18 19 |
# File 'lib/morandi/image-ops.rb', line 17 def priority 100 end |