Module: FFWD::Processor::ClassMethods

Defined in:
lib/ffwd/processor.rb

Instance Method Summary collapse

Instance Method Details

#register_processor(name) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/ffwd/processor.rb', line 64

def register_processor(name)
  unless FFWD::Processor.registry[name].nil?
    raise "Already registered '#{name}'"
  end

  FFWD::Processor.registry[name] = self
end