Module: Infusible

Defined in:
lib/infusible.rb,
lib/infusible/stub.rb,
lib/infusible/builder.rb,
lib/infusible/actuator.rb,
lib/infusible/dependency_map.rb,
lib/infusible/errors/invalid_dependency.rb,
lib/infusible/errors/duplicate_dependency.rb

Overview

Main namespace.

Defined Under Namespace

Modules: Errors, Stub Classes: Actuator, Builder, DependencyMap

Constant Summary collapse

METHOD_SCOPES =
%i[public protected private].freeze

Class Method Summary collapse

Class Method Details

.[](container) ⇒ Object



13
# File 'lib/infusible.rb', line 13

def self.[](container) = Actuator.new container

.with(container) ⇒ Object



15
16
17
18
# File 'lib/infusible.rb', line 15

def self.with container
  warn "`Infusible.#{__method__}` is deprecated, use `.[]` instead.", category: :deprecated
  Actuator.new container
end