Sha256: 0696f344cae7119bd48b3cb2197149bcac08ca092021913cb98e33ecd766f678

Contents?: true

Size: 603 Bytes

Versions: 164

Compression:

Stored size: 603 Bytes

Contents

# (Documentation in 3.x stub)
#
# @since 4.4.0
#
Puppet::Functions.create_function(:step) do
  dispatch :step do
    param 'Iterable', :iterable
    param 'Integer[1]', :step
  end

  dispatch :step_block do
    param 'Iterable', :iterable
    param 'Integer[1]', :step
    block_param 'Callable[1,1]', :block
  end

  def step(iterable, step)
    # produces an Iterable
    Puppet::Pops::Types::Iterable.asserted_iterable(self, iterable).step(step)
  end

  def step_block(iterable, step, &block)
    Puppet::Pops::Types::Iterable.asserted_iterable(self, iterable).step(step, &block)
    nil
  end
end

Version data entries

164 entries across 164 versions & 3 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/functions/step.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/functions/step.rb
puppet-5.3.7 lib/puppet/functions/step.rb
puppet-5.3.7-x86-mingw32 lib/puppet/functions/step.rb
puppet-5.3.7-x64-mingw32 lib/puppet/functions/step.rb
puppet-5.3.7-universal-darwin lib/puppet/functions/step.rb
puppet-4.10.12 lib/puppet/functions/step.rb
puppet-4.10.12-x86-mingw32 lib/puppet/functions/step.rb
puppet-4.10.12-x64-mingw32 lib/puppet/functions/step.rb
puppet-4.10.12-universal-darwin lib/puppet/functions/step.rb
puppet-4.10.11 lib/puppet/functions/step.rb
puppet-4.10.11-x86-mingw32 lib/puppet/functions/step.rb
puppet-4.10.11-x64-mingw32 lib/puppet/functions/step.rb
puppet-4.10.11-universal-darwin lib/puppet/functions/step.rb
puppet-5.3.6 lib/puppet/functions/step.rb
puppet-5.3.6-x86-mingw32 lib/puppet/functions/step.rb
puppet-5.3.6-x64-mingw32 lib/puppet/functions/step.rb
puppet-5.3.6-universal-darwin lib/puppet/functions/step.rb
bolt-0.17.1 vendored/puppet/lib/puppet/functions/step.rb
bolt-0.17.0 vendored/puppet/lib/puppet/functions/step.rb