Class: Morandi::ImageOp

Inherits:
Object
  • Object
show all
Defined in:
lib/morandi/image-ops.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImageOp

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

#priorityObject



17
18
19
# File 'lib/morandi/image-ops.rb', line 17

def priority
  100
end