Sha256: 1d7932718f2e33a0106071a914c72b82fb75735903072438a56d1d318c42db2d

Contents?: true

Size: 260 Bytes

Versions: 164

Compression:

Stored size: 260 Bytes

Contents

# (Documented in 3.x stub)
# @since 4.5.0
#
Puppet::Functions.create_function(:lest) do
  dispatch :lest do
    param 'Any', :arg
    block_param 'Callable[0,0]', :block
  end

  def lest(arg)
    if arg.nil?
      yield()
    else
      arg
    end
  end
end

Version data entries

164 entries across 164 versions & 3 rubygems

Version Path
bolt-0.16.4 vendored/puppet/lib/puppet/functions/lest.rb
bolt-0.16.3 vendored/puppet/lib/puppet/functions/lest.rb
bolt-0.16.2 vendored/puppet/lib/puppet/functions/lest.rb
puppet-5.4.0 lib/puppet/functions/lest.rb
puppet-5.4.0-x86-mingw32 lib/puppet/functions/lest.rb
puppet-5.4.0-x64-mingw32 lib/puppet/functions/lest.rb
puppet-5.4.0-universal-darwin lib/puppet/functions/lest.rb
puppet-5.3.5 lib/puppet/functions/lest.rb
puppet-5.3.5-x86-mingw32 lib/puppet/functions/lest.rb
puppet-5.3.5-x64-mingw32 lib/puppet/functions/lest.rb
puppet-5.3.5-universal-darwin lib/puppet/functions/lest.rb
bolt-0.16.1 vendored/puppet/lib/puppet/functions/lest.rb
puppet-5.3.4 lib/puppet/functions/lest.rb
puppet-5.3.4-x86-mingw32 lib/puppet/functions/lest.rb
puppet-5.3.4-x64-mingw32 lib/puppet/functions/lest.rb
puppet-5.3.4-universal-darwin lib/puppet/functions/lest.rb
puppet-4.10.10 lib/puppet/functions/lest.rb
puppet-4.10.10-x86-mingw32 lib/puppet/functions/lest.rb
puppet-4.10.10-x64-mingw32 lib/puppet/functions/lest.rb
puppet-4.10.10-universal-darwin lib/puppet/functions/lest.rb