A new instance of Header.
Returns a new instance of Header.
48 49 50 51 52 53
# File 'lib/amqp/frame.rb', line 48 def initialize payload = nil, channel = 0 super unless @payload.is_a? Protocol::Header or @payload.nil? @payload = Protocol::Header.new(@payload) end end