Sha256: 0b7cf09d0fa0f504c9fb5ae777e2496afa29782deab5dc5a8a57b1a24b09eddd

Contents?: true

Size: 353 Bytes

Versions: 8

Compression:

Stored size: 353 Bytes

Contents

require 'botfly/matcher'

module Botfly
  class MUCTextMatcher < Matcher
    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
  end
  MUCBodyMatcher = MUCTextMatcher
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
botfly-0.3.6 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.3.5 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.3.4 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.3.3 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.3.2 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.3.1 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.3.0 lib/botfly/matcher/muc_text_matcher.rb
botfly-0.2.1 lib/botfly/matcher/muc_text_matcher.rb