# File lib/chef/resource_collection/stepable_iterator.rb, line 40 def each(&block) reset_iteration(block) @iterator_type = :element iterate end
# File lib/chef/resource_collection/stepable_iterator.rb, line 46 def each_index(&block) reset_iteration(block) @iterator_type = :index iterate end
# File lib/chef/resource_collection/stepable_iterator.rb, line 52 def each_with_index(&block) reset_iteration(block) @iterator_type = :element_with_index iterate end
# File lib/chef/resource_collection/stepable_iterator.rb, line 89 def iterate_on(iteration_type, &block) @iterator_type = iteration_type @iterator_block = block end
# File lib/chef/resource_collection/stepable_iterator.rb, line 62 def pause @paused = true end
# File lib/chef/resource_collection/stepable_iterator.rb, line 58 def paused? @paused end
# File lib/chef/resource_collection/stepable_iterator.rb, line 66 def resume @paused = false iterate end
# File lib/chef/resource_collection/stepable_iterator.rb, line 71 def rewind @position = 0 end
# File lib/chef/resource_collection/stepable_iterator.rb, line 36 def size collection.size end
# File lib/chef/resource_collection/stepable_iterator.rb, line 75 def skip_back(skips=1) @position -= skips end
Generated with the Darkfish Rdoc Generator 2.