Sha256: 5f6a8e14b48c11752a8e9ca85ab1f09a52b3f0dfcee0c3128027cf5a606e42bb
Contents?: true
Size: 337 Bytes
Versions: 5
Compression:
Stored size: 337 Bytes
Contents
module Fluffle module Connectable def self.included(klass) klass.class_eval do attr_reader :connection end end def connect(*args) self.stop if self.connected? @connection = Bunny.new *args @connection.start end def connected? @connection&.connected? end end end
Version data entries
5 entries across 5 versions & 1 rubygems