summaryrefslogtreecommitdiff
path: root/lib/chef/resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r--lib/chef/resource.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index 7f0895d6c9..b43c31ad3c 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -666,9 +666,9 @@ class Chef
def inspect
ivars = instance_variables.map(&:to_sym) - FORBIDDEN_IVARS
- ivars.inject("<#{self}") do |str, ivar|
+ ivars.inject("<#{self}") { |str, ivar|
str << " #{ivar}: #{instance_variable_get(ivar).inspect}"
- end << ">"
+ } << ">"
end
# as_json does most of the to_json heavy lifted. It exists here in case activesupport