diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-05 12:03:20 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-05 12:57:40 -0700 |
commit | 8215091264d67d81f0da9a13f968b864ff736cb2 (patch) | |
tree | 37b71de99d1190c9c24e63fbbc50610363b7b8d5 /lib/chef/mash.rb | |
parent | 7bf98ad06b30b7feb4ea3fbbe45a5b733467a5d3 (diff) | |
download | chef-8215091264d67d81f0da9a13f968b864ff736cb2.tar.gz |
Style/ClassCheck
convert kind_of? to is_a?
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/mash.rb')
-rw-r--r-- | lib/chef/mash.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mash.rb b/lib/chef/mash.rb index 8b9e115dd1..404d6d622f 100644 --- a/lib/chef/mash.rb +++ b/lib/chef/mash.rb @@ -72,7 +72,7 @@ class Mash < Hash super # Handle nested values each do |k, v| - if v.kind_of?(Mash) || v.is_a?(Array) + if v.is_a?(Mash) || v.is_a?(Array) self[k] = v.dup end end @@ -210,7 +210,7 @@ class Mash < Hash # # @api private def convert_key(key) - key.kind_of?(Symbol) ? key.to_s : key + key.is_a?(Symbol) ? key.to_s : key end # @param value<Object> The value to convert. |