class Drigger::Manager(T)

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(files : Array(String)) #

Initializes and sets up:

  1. The lua stack for other adapters and contexts.
  2. 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.


[View source]

Instance Method Detail

def adapter(adpt : Drigger::Adapter(T).class, *args) #

[View source]
def adapter : Drigger::Adapter(T) | Nil #

[View source]
def commands : Array(Drigger::Command(T)) #

[View source]
def files : Array(String) #

[View source]
def run #

Runs the adapter. It is expected that the user (or the manager) already has setup the adapter.


[View source]