Module: Tone
- Defined in:
- lib/tone.rb,
lib/tone/error.rb,
lib/tone/client.rb,
lib/tone/aliaser.rb,
lib/tone/decoder.rb,
lib/tone/encoder.rb,
lib/tone/configuration/loader.rb
Overview
Main namespace.
Defined Under Namespace
Modules: Configuration Classes: Aliaser, Client, Decoder, Encoder, Error
Constant Summary collapse
- DEFAULTS =
Configuration::Loader.new.call
- CONTAINER =
{defaults: DEFAULTS, aliaser: Aliaser, encoder: Encoder, decoder: Decoder}.freeze
Class Method Summary collapse
Class Method Details
.loader(registry = Zeitwerk::Registry) ⇒ Object
17 18 19 |
# File 'lib/tone.rb', line 17 def self.loader registry = Zeitwerk::Registry @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") } end |
.new ⇒ Object
21 |
# File 'lib/tone.rb', line 21 def self.new(...) = Client.new(...) |