mail_classifier.rb
# Returns a classification as determined by the classifiers passed during
# initialization.  If multiple classifiers would have returned a valid
# class, the first one wins; therefore, classifiers should be passed in
# order of highest to lowest preference
Returns a classification as determined by the classifiers passed during
initialization.  If multiple classifiers would have returned a valid
class, the first one wins; therefore, classifiers should be passed in
order of highest to lowest preference
Returns a classification as determined by the classifiers passed during initialization . If multiple classifiers would have returned a valid class the first one wins ; therefore classifiers should be passed in order of highest to lowest preference
def classification(msg)
      @classifiers.each do |classifier|
        if klass = classifier.classification(msg)
          return klass
        end
      end
      nil
    end
def classification ( msg ) @classifiers . each do | classifier | if klass = classifier . classification ( msg ) return klass end end nil end
Returns a classification as determined by the classifiers passed during
initialization.
Returns a classification as determined by the classifiers passed during initialization .
msg