Method: Puppet::Pops::Types::StepIterator#next

Defined in:
lib/puppet/pops/types/iterable.rb

#nextObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



231
232
233
234
235
236
237
238
239
240
241
# File 'lib/puppet/pops/types/iterable.rb', line 231

def next
  result = @enumeration.next
  skip = @step_size - 1
  if skip > 0
    begin
      skip.times { @enumeration.next }
    rescue StopIteration
    end
  end
  result
end