require 'alki' assembly = Alki.create_assembly do service :logger do require 'logger' Logger.new STDOUT end end assembly.new.logger << "hello\n" #output: hello
Services are the key element Assemblies are typically made up of. Like the block form of
service takes a name and block, which will be evaluated once on-demand and the result cached.
set is a lightweight element for simple values,
service provides more functionality
via overlays and tags.
Commonly a service will require the file that defines a class, and then constructs an instance of that class.