Top Level Namespace
Defined Under Namespace
Modules: AbstractedCassandraRepository, ApplicationConfiguration, Authenticator, CassandraConfiguration, CommonError, ConsulConfiguration, Injector, RestConfiguration, RestResponseModel, Validator Classes: AppService, Application, CassandraService, ConsulService, RestApplication, RestService, SecurityContextHolder
Constant Summary collapse
- Inflector =
Dry::Inflector.new
- Container =
Dry::Container.new
- Inject =
Dry::AutoInject(Container)
Instance Method Summary collapse
Instance Method Details
#injector(name = nil) ⇒ Object
6 7 8 9 |
# File 'lib/ioc/injector.rb', line 6 def injector name = nil name = name.nil? ? self.name[0, 1].downcase + self.name[1..-1] : name Container.register(Inflector.underscore(name), self.extend(Injector).new) end |