Class: Qrack::Protocol::Class
- Inherits:
-
Object
- Object
- Qrack::Protocol::Class
show all
- Defined in:
- lib/ext/bunny-0.6.0/lib/qrack/protocol/spec08.rb
Direct Known Subclasses
Access, Basic, Channel, Connection, Dtx, Exchange, File, Queue, Stream, Test, Tunnel, Tx
Defined Under Namespace
Classes: Method
Class Method Summary
collapse
Class Method Details
.id ⇒ Object
60
|
# File 'lib/ext/bunny-0.6.0/lib/qrack/protocol/spec08.rb', line 60
def id() self::ID end
|
.Method(id, name) ⇒ Object
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# File 'lib/ext/bunny-0.6.0/lib/qrack/protocol/spec08.rb', line 91
def self.Method(id, name)
@_base_methods ||= {}
@_base_methods[id] ||= ::Class.new(Method) do
class_eval %[
def self.inherited klass
klass.const_set(:ID, #{id})
klass.const_set(:NAME, :#{name.to_s})
klass.parent.methods[#{id}] = klass
klass.parent.methods[klass::NAME] = klass
end
]
end
end
|
.methods ⇒ Object
89
|
# File 'lib/ext/bunny-0.6.0/lib/qrack/protocol/spec08.rb', line 89
def self.methods() @methods ||= {} end
|
.name ⇒ Object
61
|
# File 'lib/ext/bunny-0.6.0/lib/qrack/protocol/spec08.rb', line 61
def name() self::NAME end
|
.properties ⇒ Object
58
|
# File 'lib/ext/bunny-0.6.0/lib/qrack/protocol/spec08.rb', line 58
def properties() @properties ||= [] end
|