Class: Warren::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/warren/log.rb

Overview

Class Warren::Log provides a dummy RabbitMQ connection pool for use during development

Defined Under Namespace

Classes: Channel

Instance Method Summary collapse

Instance Method Details

#<<(message) ⇒ Object


32
33
34
# File 'lib/warren/log.rb', line 32

def <<(message)
  with_chanel { |c| c << message }
end

#connectObject

Provide API compatibility with the RabbitMQ versions Do nothing in this case


17
# File 'lib/warren/log.rb', line 17

def connect; end

#disconnectObject


19
# File 'lib/warren/log.rb', line 19

def disconnect; end

#with_chanel {|Channel.new| ... } ⇒ void

This method returns an undefined value.

Yields a Warren::Log::Channel

Yields:

Yield Returns:


28
29
30
# File 'lib/warren/log.rb', line 28

def with_chanel
  yield Channel.new
end