Class: Warren::Log
- Inherits:
-
Object
- Object
- Warren::Log
- 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
- #<<(message) ⇒ Object
-
#connect ⇒ Object
Provide API compatibility with the RabbitMQ versions Do nothing in this case.
- #disconnect ⇒ Object
-
#with_chanel {|Channel.new| ... } ⇒ void
Yields a Warren::Log::Channel.
Instance Method Details
#<<(message) ⇒ Object
32 33 34 |
# File 'lib/warren/log.rb', line 32 def <<() with_chanel { |c| c << } end |
#connect ⇒ Object
Provide API compatibility with the RabbitMQ versions Do nothing in this case
17 |
# File 'lib/warren/log.rb', line 17 def connect; end |
#disconnect ⇒ Object
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
28 29 30 |
# File 'lib/warren/log.rb', line 28 def with_chanel yield Channel.new end |