module Messages
  class MessageTypeMatcher
    class << self
      attr_accessor :source, :dyno

     def source(source)
       @source = source
     end

     def dyno(dyno)
       @dyno = dyno
     end
    end

    def self.===((source, dyno))
      @source == source and @dyno == dyno
    end
  end
end

module Messages
  class MessageTypeMatcher
    class << self
      attr_accessor :source, :dyno

     def source(source)
       @source = source
     end

     def dyno(dyno)
       @dyno = dyno
     end
    end

    def self.===((source, dyno))
      source.match("^#{@source}$") and dyno.match("^#{dyno}$")
    end
  end
end

Support regex in message type matchers
Support regex in message type matchers
