summaryrefslogtreecommitdiff
path: root/lib/chef/node
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/node')
-rw-r--r--lib/chef/node/mixin/immutablize_array.rb6
-rw-r--r--lib/chef/node/mixin/immutablize_hash.rb6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/node/mixin/immutablize_array.rb b/lib/chef/node/mixin/immutablize_array.rb
index 2788f5635e..e9cbb2142a 100644
--- a/lib/chef/node/mixin/immutablize_array.rb
+++ b/lib/chef/node/mixin/immutablize_array.rb
@@ -1,5 +1,5 @@
#--
-# Copyright:: Copyright 2016-2018, Chef Software Inc.
+# Copyright:: Copyright 2016-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,7 +26,7 @@ class Chef
*
+
-
- \[\]
+ []
abbrev
all?
any?
@@ -131,7 +131,7 @@ class Chef
# immutable.
DISALLOWED_MUTATOR_METHODS = %i{
<<
- \[\]=
+ []=
append
clear
collect!
diff --git a/lib/chef/node/mixin/immutablize_hash.rb b/lib/chef/node/mixin/immutablize_hash.rb
index 2cf65d2b2e..8c0d1c9509 100644
--- a/lib/chef/node/mixin/immutablize_hash.rb
+++ b/lib/chef/node/mixin/immutablize_hash.rb
@@ -1,5 +1,5 @@
#--
-# Copyright:: Copyright 2016-2018, Chef Software Inc.
+# Copyright:: Copyright 2016-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,7 +26,7 @@ class Chef
<=
>
>=
- \[\]
+ []
all?
any?
assoc
@@ -125,7 +125,7 @@ class Chef
zip
}.freeze
DISALLOWED_MUTATOR_METHODS = %i{
- \[\]=
+ []=
clear
collect!
compact!