Class: Botfly::SubjectMatcher
- Defined in:
- lib/botfly/matcher/subject_matcher.rb
Instance Method Summary collapse
Methods inherited from Matcher
Constructor Details
This class inherits a constructor from Botfly::Matcher
Instance Method Details
#match(params) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/botfly/matcher/subject_matcher.rb', line 6 def match(params) msg = params[:message] Botfly.logger.debug "MCH: Matching #{@condition.inspect} against #{msg.subject.inspect}" Botfly.logger.debug "RESULT: #{(msg.subject =~ @condition).inspect}" return msg.subject.node =~ @condition end |