[rabbitmq-discuss] Method chaining in Bunny 0.9

Michael Klishin michael.s.klishin at gmail.com
Thu Nov 29 18:04:36 GMT 2012


If you don't use RabbitMQ with Ruby, feel free to skip this
thread entirely.

I am thinking about changing return values in the high level API
in Bunny 0.9 to support method chaining like amqp gem does:

https://gist.github.com/80f9acec43255c5c7b29

Currently B::Queue#bind returns an instance of the response
(AMQ::Protocol::BindOk), for many operations those methods
are not particularly useful.

Is it a better idea to support method chaining? Folks who need
access to responses can always use Bunny::Channel#queue_bind
and other "low-level" methods on B::Channel.

What do you think?
-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121129/dd94eec3/attachment.htm>


More information about the rabbitmq-discuss mailing list