# File lib/activemessaging/adapters/stomp.rb, line 193 def matches_subscription?(subscription) # if the subscription has been specified in the headers, rely on this if self.headers['subscription'] && subscription.subscribe_headers['id'] self.headers['subscription'].to_s == subscription.subscribe_headers['id'].to_s # see if the destination uses a wildcard representation elsif subscription.destination.wildcard self.destination.to_s =~ subscription.destination.wildcard # no subscription id? no wildcard? use the name of the destination as a straight match else self.destination.to_s == subscription.destination.value.to_s end end
Generated with the Darkfish Rdoc Generator 2.