expand on readme

This commit is contained in:
Adrian Malacoda
2018-02-25 03:09:53 -06:00
parent c0ee8b4d6d
commit 906b5709d0
2 changed files with 9 additions and 1 deletions

View File

@@ -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)) {