Method: WDI::Config::ConfigFile#keys_with_prefix
- Defined in:
- lib/wdi/config.rb
#keys_with_prefix(prefix = nil) ⇒ Object
84 85 86 87 88 89 |
# File 'lib/wdi/config.rb', line 84 def keys_with_prefix(prefix=nil) return keys if prefix.nil? prefix = translate_outgoing(translate_incoming(prefix)) # force correct string format key_list = keys.select{|k| (k =~ Regexp.new(prefix)) == 0 } key_list.count == 0 ? false : key_list end |