diff options
author | Kannan Manickam <kannan@rightscale.com> | 2013-03-25 13:20:14 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 14:31:26 -0700 |
commit | e102605127df24adc14a716ed74f28983892ce38 (patch) | |
tree | b8943a82483fd8999551c71dd8de9cbb63b364cc /lib/chef/resource_collection.rb | |
parent | 4e5c6f9d4003011019134007bb0dea77d047082e (diff) | |
download | chef-e102605127df24adc14a716ed74f28983892ce38.tar.gz |
returning self from << method as suggested by Bryan
Diffstat (limited to 'lib/chef/resource_collection.rb')
-rw-r--r-- | lib/chef/resource_collection.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index e5bec91cce..f6349111cb 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -52,6 +52,7 @@ class Chef @resources << a @resources_by_name[a.to_s] = @resources.length - 1 end + self end # 'push' is an alias method to << |