From 1bcc05a855b5ce2036c02182696b84745996a4ff Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Mar 2016 19:50:13 +0100 Subject: [PATCH] Add Runtime::config() --- libimagrt/src/runtime.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs index 746bf100..de97a3c8 100644 --- a/libimagrt/src/runtime.rs +++ b/libimagrt/src/runtime.rs @@ -207,6 +207,13 @@ impl<'a> Runtime<'a> { &self.cli_matches } + /** + * Get the configuration object + */ + pub fn config(&self) -> Option<&Configuration> { + self.configuration.as_ref() + } + /** * Get the store object */