Method: Puppet::Pops::Types::StepIterator#next
- Defined in:
- lib/puppet/pops/types/iterable.rb
#next ⇒ Object
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.
288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/puppet/pops/types/iterable.rb', line 288 def next result = @enumeration.next skip = @step_size - 1 if skip > 0 begin skip.times { @enumeration.next } rescue StopIteration end end result end |