Method: Engine2::Model#install_processors

Defined in:
lib/engine2/model.rb

#install_processors(processors) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/engine2/model.rb', line 35

def install_processors processors
    hash = {}
    type_info.each_pair do |name, info|
        proc = processors[info[:type]]
        hash[name] = proc if proc
    end
    hash.empty? ? nil : hash
end