From 2bf306af28e07feab9efd81e0bb1d67b74eee8d2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 12 Dec 2012 14:14:03 +0000 Subject: The settings object will let you retrieve an arbitrary key. --- lib/custodian/settings.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/custodian') diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb index 62006c0..d460e9a 100644 --- a/lib/custodian/settings.rb +++ b/lib/custodian/settings.rb @@ -71,6 +71,10 @@ module Custodian end + def key( name ) + _load() unless( _loaded? ) + @settings[name] + end # -- cgit v1.2.1