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/resource/template.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/resource/template.rb')
-rw-r--r-- | lib/chef/resource/template.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/template.rb b/lib/chef/resource/template.rb index 443dd40470..3ff568b1a1 100644 --- a/lib/chef/resource/template.rb +++ b/lib/chef/resource/template.rb @@ -109,7 +109,7 @@ class Chef "`helper(:method)` requires a block argument (e.g., `helper(:method) { code }`)" end - unless method_name.kind_of?(Symbol) + unless method_name.is_a?(Symbol) raise Exceptions::ValidationFailed, "method_name argument to `helper(method_name)` must be a symbol (e.g., `helper(:method) { code }`)" end @@ -163,7 +163,7 @@ class Chef "Passing both a module and block to #helpers is not supported. Call #helpers multiple times instead" elsif block_given? @inline_helper_modules << block - elsif module_name.kind_of?(::Module) + elsif module_name.is_a?(::Module) @helper_modules << module_name elsif module_name.nil? raise Exceptions::ValidationFailed, |