diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-12 08:00:43 -0500 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-12 08:00:43 -0500 |
commit | 7f46ecec76e61ba988c61d38f7e0ff5ce0f79cfd (patch) | |
tree | 5adcc0c57763973fd5ce05bb2f26f3b722665880 | |
parent | 999edafa91924b5ac30258b530574163bd648f19 (diff) | |
download | mixlib-config-jdm/revert.tar.gz |
Revert "Rename has_key? -> key? (BC compatible)"jdm/revert
This reverts commit d4548e5c898a032c6751e25734371213a1b165c9.
-rw-r--r-- | lib/mixlib/config.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mixlib/config.rb b/lib/mixlib/config.rb index b70c11d..93419ee 100644 --- a/lib/mixlib/config.rb +++ b/lib/mixlib/config.rb @@ -92,10 +92,9 @@ module Mixlib # === Returns # <True>:: If the config option exists # <False>:: If the config option does not exist - def key?(key) + def has_key?(key) self.configuration.has_key?(key.to_sym) end - alias_method :has_key?, :key? # Resets a config option to its default. # |