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
bolt-0.21.3 vendored/puppet/lib/puppet/functions/next.rb
puppet-5.5.3 lib/puppet/functions/next.rb
puppet-5.5.3-x86-mingw32 lib/puppet/functions/next.rb
puppet-5.5.3-x64-mingw32 lib/puppet/functions/next.rb
puppet-5.5.3-universal-darwin lib/puppet/functions/next.rb
bolt-0.21.2 vendored/puppet/lib/puppet/functions/next.rb
bolt-0.21.1 vendored/puppet/lib/puppet/functions/next.rb
puppet-5.5.2 lib/puppet/functions/next.rb
puppet-5.5.2-x86-mingw32 lib/puppet/functions/next.rb
puppet-5.5.2-x64-mingw32 lib/puppet/functions/next.rb
puppet-5.5.2-universal-darwin lib/puppet/functions/next.rb
bolt-0.21.0 vendored/puppet/lib/puppet/functions/next.rb
bolt-0.20.7 vendored/puppet/lib/puppet/functions/next.rb
bolt-0.20.6 vendored/puppet/lib/puppet/functions/next.rb
bolt-0.20.5 vendored/puppet/lib/puppet/functions/next.rb
puppet-5.5.1 lib/puppet/functions/next.rb
puppet-5.5.1-x86-mingw32 lib/puppet/functions/next.rb
puppet-5.5.1-x64-mingw32 lib/puppet/functions/next.rb
puppet-5.5.1-universal-darwin lib/puppet/functions/next.rb