diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 08:22:09 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 08:22:09 -0800 |
commit | c844e1c87374b18ee634a06a5325518631607c90 (patch) | |
tree | 59526dce9d78c30e40282e595d914cf703858663 /lib/chef/resource.rb | |
parent | 0944320b72ee1ab16a18a149f5ecb743ace0c0d3 (diff) | |
download | chef-c844e1c87374b18ee634a06a5325518631607c90.tar.gz |
chefstyle: fix Lint/StringConversionInInterpolation
useless use of `"#{foo.to_s}"`
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r-- | lib/chef/resource.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 4aec8cf1f6..6b56a0107a 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -658,7 +658,7 @@ class Chef def inspect ivars = instance_variables.map { |ivar| ivar.to_sym } - FORBIDDEN_IVARS - ivars.inject("<#{to_s}") do |str, ivar| + ivars.inject("<#{self}") do |str, ivar| str << " #{ivar}: #{instance_variable_get(ivar).inspect}" end << ">" end @@ -1332,7 +1332,7 @@ class Chef if enclosing_provider && enclosing_provider.respond_to?(method_symbol) enclosing_provider.send(method_symbol, *args, &block) else - raise NoMethodError, "undefined method `#{method_symbol.to_s}' for #{self.class.to_s}" + raise NoMethodError, "undefined method `#{method_symbol}' for #{self.class}" end end |