Sha256: bf3872e87b544fe58e8c99f733dac3a4c3a5c168dbf4abcb845a65c9d407bcbe

Contents?: true

Size: 367 Bytes

Versions: 8

Compression:

Stored size: 367 Bytes

Contents

require 'botfly/matcher'

# FIXME: Make time matching much more robust
module Botfly
  class MUCTimeMatcher < Matcher
    def match(params)
      time = params[:time]
      Botfly.logger.debug "MCH: Matching #{@condition.inspect} against #{time}"
      Botfly.logger.debug "RESULT: #{(time =~ @condition).inspect}"
      return time =~ @condition
    end
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

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