Parent

Class Index [+]

Quicksearch

AMQ::Protocol::Class

We don“t instantiate the following classes, as we don“t actually need any per-instance state. Also, this is pretty low-level functionality, hence it should have a reasonable performance. As everyone knows, garbage collector in MRI performs really badly, which is another good reason for not creating any objects, but only use class as a struct. Creating classes is quite expensive though, but here the inheritance comes handy and mainly as we can“t simply make a reference to a function, we can“t use a hash or an object. I“ve been also considering to have just a bunch of methods, but here“s the problem, that after we“d require this file, all these methods would become global which would be a bad, bad thing to do.

Public Class Methods

classes() click to toggle source
     # File lib/amq/protocol/client.rb, line 203
203:       def self.classes
204:         @classes
205:       end
inherited(base) click to toggle source
     # File lib/amq/protocol/client.rb, line 197
197:       def self.inherited(base)
198:         if self == Protocol::Class
199:           @classes << base
200:         end
201:       end
method_id() click to toggle source
     # File lib/amq/protocol/client.rb, line 189
189:       def self.method_id
190:         @method_id
191:       end
name() click to toggle source
     # File lib/amq/protocol/client.rb, line 193
193:       def self.name
194:         @name
195:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.