Class: Carrot::AMQP::Protocol::Class::Method
- Inherits:
-
Object
- Object
- Carrot::AMQP::Protocol::Class::Method
- Defined in:
- lib/amqp/spec.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.arguments ⇒ Object
85 |
# File 'lib/amqp/spec.rb', line 85 def arguments() @arguments ||= [] end |
.id ⇒ Object
88 |
# File 'lib/amqp/spec.rb', line 88 def id() self::ID end |
.name ⇒ Object
89 |
# File 'lib/amqp/spec.rb', line 89 def name() self::NAME end |
.parent ⇒ Object
87 |
# File 'lib/amqp/spec.rb', line 87 def parent() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end |
Instance Method Details
#==(b) ⇒ Object
92 93 94 95 96 |
# File 'lib/amqp/spec.rb', line 92 def == b self.class.arguments.inject(true) do |eql, (type, name)| eql and __send__("#{name}") == b.__send__("#{name}") end end |