lib/amqp/frame.rb in amqp-0.5.9 vs lib/amqp/frame.rb in amqp-0.6.0

- old
+ new

@@ -1,11 +1,11 @@ require 'amqp/spec' require 'amqp/buffer' require 'amqp/protocol' module AMQP - class Frame + class Frame #:nodoc: all def initialize payload = nil, channel = 0 @channel, @payload = channel, payload end attr_accessor :channel, :payload @@ -31,10 +31,10 @@ [ :id, :channel, :payload ].inject(true) do |eql, field| eql and __send__(field) == frame.__send__(field) end end - class Invalid < Exception; end + class Invalid < StandardError; end class Method def initialize payload = nil, channel = 0 super unless @payload.is_a? Protocol::Class::Method or @payload.nil? \ No newline at end of file