Sha256: 8694edf9c5c7fe22a3e265e5b1698ff88bc4891845495e974743d88a617e557e

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 Bytes

Contents

# AmqpTopicBinding

This simple gem implements the matching algorithm for AMQP topic exchange 
routing key bindings, allowing you to do the same matching that is performed
at the exchange when the broker is deciding what to send to a queue.

Wildcards are supported.

## Usage

Simply ask the matcher if a routing key matches a pattern:

```ruby
> AmqpTopicBinding::Matcher.new('foo.bar.*').matches?('foo.bar.baz')
=> true
> AmqpTopicBinding::Matcher.new('foo.bar.*').matches?('foo.bar')
=> false
> AmqpTopicBinding::Matcher.new('foo.#').matches?('foo.bar.baz')
=> true
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amqp_topic_binding-0.2.0 README.md
amqp_topic_binding-0.1.0 README.md