Sha256: 89bff3840c8adf58a0c6eb1ae42b88a9186ebcbaf6fb7a38fd4c0b00320207d5

Contents?: true

Size: 447 Bytes

Versions: 339

Compression:

Stored size: 447 Bytes

Contents

# Makes iteration continue with the next value, optionally with a given value for this iteration.
# If a value is not given it defaults to `undef`
#
# @since 4.7.0
#
Puppet::Functions.create_function(:next) do
  dispatch :next_impl do
    optional_param 'Any', :value
  end

  def next_impl(value = nil)
    file, line = Puppet::Pops::PuppetStack.top_of_stack
    exc = Puppet::Pops::Evaluator::Next.new(value, file, line)
    raise exc
  end
end

Version data entries

339 entries across 339 versions & 2 rubygems

Version Path
puppet-6.26.0 lib/puppet/functions/next.rb
puppet-6.26.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-6.26.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-6.26.0-universal-darwin lib/puppet/functions/next.rb
puppet-7.14.0 lib/puppet/functions/next.rb
puppet-7.14.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-7.14.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-7.14.0-universal-darwin lib/puppet/functions/next.rb
puppet-7.13.1 lib/puppet/functions/next.rb
puppet-7.13.1-x86-mingw32 lib/puppet/functions/next.rb
puppet-7.13.1-x64-mingw32 lib/puppet/functions/next.rb
puppet-7.13.1-universal-darwin lib/puppet/functions/next.rb
puppet-7.12.1 lib/puppet/functions/next.rb
puppet-7.12.1-x86-mingw32 lib/puppet/functions/next.rb
puppet-7.12.1-x64-mingw32 lib/puppet/functions/next.rb
puppet-7.12.1-universal-darwin lib/puppet/functions/next.rb
puppet-6.25.1 lib/puppet/functions/next.rb
puppet-6.25.1-x86-mingw32 lib/puppet/functions/next.rb
puppet-6.25.1-x64-mingw32 lib/puppet/functions/next.rb
puppet-6.25.1-universal-darwin lib/puppet/functions/next.rb