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