Less magic implementation.
Less magic implementation.

Module#define_method creates a closure, therefore each invoking of thusly defined method is slower. This is the most low-level part of AMQP implementation, hence we shall prefer fast code over clever code. Plus in this very case, we don't really need any metaprogramming, because it can hardly bring any advantage.

travis-repos/amq-protocol,ruby-amqp/amq-protocol,ruby-amqp/amq-protocol,travis-repos/amq-protocol