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 | f40d0a37c6b99e88bb1ffc66e3421bf4e51a55e9 (patch) | |
| tree | c002fcc42b754d7d4bb2c08e8dc3f9d512378d12 | |
| parent | e3d9a6ad6cb2c1463915d356172e5aeb92c4e26f (diff) | |
  The settings object will let you retrieve an arbitrary key.
| -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      # | 
