# File lib/bunny.rb, line 36 def self.new(connection_string_or_opts = Hash.new, opts = Hash.new) # Set up Bunny according to AMQP spec version required if connection_string_or_opts.respond_to?(:keys) && opts.empty? opts = connection_string_or_opts end spec_version = opts[:spec] || '08' # Return client setup(spec_version, connection_string_or_opts, opts) end