Sha256: 42041f561ba399a756beb014441f1155b0a6da73ce5fcb75e6b6272afe5c21bd

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry-container"
require "spek"
require "tone"

module Rubysmith
  # Provides a global gem container for injection into other objects.
  module Container
    extend Dry::Container::Mixin

    register(:color) { Tone.new }
    register(:configuration) { Configuration::Loader.call }
    register(:specification) { Spek::Loader.call "#{__dir__}/../../rubysmith.gemspec" }
    register(:kernel) { Kernel }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-4.7.0 lib/rubysmith/container.rb