Class: Botfly::MUCTextMatcher

Inherits:
Matcher
  • Object
show all
Defined in:
lib/botfly/matcher/muc_text_matcher.rb

Instance Method Summary collapse

Methods inherited from Matcher

#initialize

Constructor Details

This class inherits a constructor from Botfly::Matcher

Instance Method Details

#match(params) ⇒ Object



5
6
7
8
9
10
# File 'lib/botfly/matcher/muc_text_matcher.rb', line 5

def match(params)
  text = params[:text]
  Botfly.logger.debug "MCH: Matching #{@condition.inspect} against #{text}"
  Botfly.logger.debug "RESULT: #{(text =~ @condition).inspect}"
  return text =~ @condition
end