Parent

Methods

Files

Moqueue::MockExchange::DirectBindingKey

Requires an exact match

Public Class Methods

new(key_string) click to toggle source
# File lib/moqueue/mock_exchange.rb, line 132
def initialize(key_string)
  @key = key_string.to_s
end

Public Instance Methods

matches?(message_key) click to toggle source
# File lib/moqueue/mock_exchange.rb, line 136
def matches?(message_key)
  message_key, binding_key = message_key.to_s, key.dup

  # looking for string equivalence
  message_key == binding_key
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.