diff options
-rw-r--r-- | lib/chef/resource_collection.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource_collection/resource_list.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index 54ffd5ae66..3b6ff4297e 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob (<adam@chef.io>) # Author:: Christopher Walters (<cw@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -87,7 +87,7 @@ class Chef # Read-only methods are simple to delegate - doing that below resource_list_methods = Enumerable.instance_methods + - %i{iterator all_resources \[\] each execute_each_resource each_index empty?} - + %i{iterator all_resources [] each execute_each_resource each_index empty?} - [:find] # find overridden below resource_set_methods = %i{resources keys validate_lookup_spec!} diff --git a/lib/chef/resource_collection/resource_list.rb b/lib/chef/resource_collection/resource_list.rb index 5ea018a3e8..afd80799a1 100644 --- a/lib/chef/resource_collection/resource_list.rb +++ b/lib/chef/resource_collection/resource_list.rb @@ -36,7 +36,7 @@ class Chef private :resources # Delegate direct access methods to the @resources array # 4 extra methods here are not included in the Enumerable's instance methods - direct_access_methods = Enumerable.instance_methods + %i{\[\] each each_index empty?} + direct_access_methods = Enumerable.instance_methods + %i{[] each each_index empty?} def_delegators :resources, *(direct_access_methods) def initialize |