Method: Chef::ResourceCollection::StepableIterator#each_with_index

Defined in:
lib/chef/resource_collection/stepable_iterator.rb

#each_with_index(&block) ⇒ Object



51
52
53
54
55
# File 'lib/chef/resource_collection/stepable_iterator.rb', line 51

def each_with_index(&block)
  reset_iteration(block)
  @iterator_type = :element_with_index
  iterate
end