Module: Protein
- Defined in:
- lib/protein.rb,
lib/protein/client.rb,
lib/protein/config.rb,
lib/protein/errors.rb,
lib/protein/router.rb,
lib/protein/server.rb,
lib/protein/payload.rb,
lib/protein/pointer.rb,
lib/protein/service.rb,
lib/protein/version.rb,
lib/protein/get_const.rb,
lib/protein/processor.rb,
lib/protein/transport.rb,
lib/protein/amqp_adapter.rb,
lib/protein/http_adapter.rb,
lib/protein/service_error.rb,
lib/protein/proto_compiler.rb
Defined Under Namespace
Modules: Payload
Classes: AMQPAdapter, CallError, Client, Config, DefinitionError, GetConst, HTTPAdapter, Pointer, PointerError, ProcessingError, Processor, ProtoCompiler, Router, RoutingError, Server, Service, ServiceError, Transport, TransportError
Constant Summary
collapse
- VERSION =
'0.5.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
35
36
37
|
# File 'lib/protein.rb', line 35
def config
@config ||= Config.new
end
|
28
29
30
31
32
33
|
# File 'lib/protein.rb', line 28
def configure(&block)
new_config = Config.new
block.call(new_config)
@config = new_config
@config
end
|
.logger ⇒ Object
39
40
41
42
43
44
45
|
# File 'lib/protein.rb', line 39
def logger
@logger ||= begin
Logger.new($stdout).tap do |log|
log.progname = 'protein'
end
end
end
|