Class: Modern::Services

Inherits:
Struct
  • Object
show all
Defined in:
lib/modern/services.rb

Overview

The default services catalogue for a Modern app, and one that can be extended by a consuming application to add additional services. Mixins and multiple services from multiple packages can be done with ‘dry-struct` but looks a little bizarre:

discourse.dry-rb.org/t/dry-struct-reusing-a-set-of-common-attributes/315/3

Constant Summary collapse

LoggerType =
Types.Instance(Ougai::Logger) | Types.Instance(Ougai::ChildLogger)

Method Summary

Methods included from Modern::Struct::Copy

#copy