lib/kazoo/subscription.rb
def has_topic?(topic)
      case pattern
        when :white_list; topic.name =~ regexp
        when :black_list; topic.name !~ regexp
      end
    end
# Returns true if the whitelist or blacklist does not filter out the provided topic.
Returns true if the whitelist or blacklist does not filter out the provided topic.
Returns true if the whitelist or blacklist does not filter out the provided topic .
def has_topic?(topic)
      case pattern
        when :white_list; topic.name =~ regexp
        when :black_list; topic.name !~ regexp
      end
    end
def has_topic? ( topic ) case pattern when :white_list ; topic . name =~ regexp when :black_list ; topic . name !~ regexp end end
Returns true if the whitelist or blacklist does not filter out the provided topic.
Returns true if the whitelist or blacklist does not filter out the provided topic .
topic