Skip to content

Commit

Permalink
Merge pull request #28 from chef/jdm/revert
Browse files Browse the repository at this point in the history
Revert "Rename has_key? -> key? (BC compatible)"
  • Loading branch information
lamont-granquist committed May 12, 2015
2 parents 999edaf + 7f46ece commit 44252ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mixlib/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ def []=(config_option, value)
# === 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.
#
Expand Down

0 comments on commit 44252ad

Please sign in to comment.