From f40d0a37c6b99e88bb1ffc66e3421bf4e51a55e9 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') 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