class
Drigger::Manager(T)
- Drigger::Manager(T)
- Reference
- Object
Overview
A general controller of other adapters and commands Any provider that extends this manager is expected to call super on the initialize method.
Direct Known Subclasses
Defined in:
drigger/manager.crConstructors
-
.new(files : Array(String))
Initializes and sets up: 1.
Instance Method Summary
- #adapter(adpt : Drigger::Adapter(T).class, *args)
- #adapter : Drigger::Adapter(T) | Nil
- #commands : Array(Drigger::Command(T))
- #files : Array(String)
-
#run
Runs the adapter.
Constructor Detail
def self.new(files : Array(String))
#
Initializes and sets up:
- The lua stack for other adapters and contexts.
- The commands passed down from the files. This will not load the files, only register them as
Drigger::Module
NOTE Any provider can also add an adapter after running super and for the ones implemented in this library, that is expected to happen by default.
Instance Method Detail
def run
#
Runs the adapter. It is expected that the user (or the manager) already has setup the adapter.