# File lib/chef/resource_collection.rb, line 43 def []=(index, arg) is_chef_resource(arg) @resources[index] = arg @resources_by_name[arg.to_s] = index end