lib/amqp/spec.rb in fotonauts-amqp-0.6.1 vs lib/amqp/spec.rb in fotonauts-amqp-0.6.4
- old
+ new
@@ -1,8 +1,8 @@
#:stopdoc:
-# this file was autogenerated on Sat Jan 03 14:05:57 -0600 2009
+# this file was autogenerated on Thu Jul 09 15:17:33 -0700 2009
# using amqp-0.8.json (mtime: Sat Jan 03 08:58:13 -0600 2009)
#
# DO NOT EDIT! (edit protocol/codegen.rb instead, and run `rake codegen`)
module AMQP
@@ -94,13 +94,13 @@
]
end
def arguments() @arguments ||= [] end
- def parent() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
- def id() self::ID end
- def name() self::NAME end
+ def section() Protocol.const_get(self.to_s[/Protocol::(.+?)::/,1]) end
+ def id() self::ID end
+ def name() self::NAME end
end
def == b
self.class.arguments.inject(true) do |eql, (type, name)|
eql and __send__("#{name}") == b.__send__("#{name}")
@@ -115,11 +115,11 @@
@_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
+ klass.section.methods[#{id}] = klass
+ klass.section.methods[klass::NAME] = klass
end
]
end
end
end