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.21.0 lib/puppet/functions/next.rb
puppet-6.21.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-6.21.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-6.21.0-universal-darwin lib/puppet/functions/next.rb
puppet-7.3.0 lib/puppet/functions/next.rb
puppet-7.3.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-7.3.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-7.3.0-universal-darwin lib/puppet/functions/next.rb
puppet-6.20.0 lib/puppet/functions/next.rb
puppet-6.20.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-6.20.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-6.20.0-universal-darwin lib/puppet/functions/next.rb
puppet-7.1.0 lib/puppet/functions/next.rb
puppet-7.1.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-7.1.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-7.1.0-universal-darwin lib/puppet/functions/next.rb
puppet-7.0.0 lib/puppet/functions/next.rb
puppet-7.0.0-x86-mingw32 lib/puppet/functions/next.rb
puppet-7.0.0-x64-mingw32 lib/puppet/functions/next.rb
puppet-7.0.0-universal-darwin lib/puppet/functions/next.rb