diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-12-12 14:14:03 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-12-12 14:14:03 +0000 |
commit | 2bf306af28e07feab9efd81e0bb1d67b74eee8d2 (patch) | |
tree | 221af20b501f3cec249e35676004e6eefc8bb423 /lib/custodian | |
parent | 2327ff5ec0d848577ea9708e405dc7c70bf31537 (diff) |
The settings object will let you retrieve an arbitrary key.
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/settings.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 # |