Method: Pec.processor_matching
- Defined in:
- lib/pec.rb
.processor_matching(source, klass) ⇒ Object
90 91 92 93 94 95 96 97 |
# File 'lib/pec.rb', line 90 def self.processor_matching(source, klass) source.keys.each do |k| Object.const_get(klass.to_s).constants.each do |c| object = Object.const_get("#{klass.to_s}::#{c}") yield object if k.to_s == object.kind.to_s end end end |