expand on readme
This commit is contained in:
@@ -71,6 +71,10 @@ impl Tenquestionmarks {
|
||||
Result::Ok(Tenquestionmarks::with_modules(modules))
|
||||
}
|
||||
|
||||
pub fn get_module (&self, name: &str) -> Option<&Module> {
|
||||
self.modules.get(name)
|
||||
}
|
||||
|
||||
pub fn reconfigure (&self, configuration: &Table) {
|
||||
for (key, module_configuration) in configuration {
|
||||
if let (Some(module_configuration_table), Some(ref module)) = (module_configuration.as_table(), self.modules.get(key)) {
|
||||
|
Reference in New Issue
Block a user