Sha256: c698897070c9a7777fd6b1cebac55c9d81cd7e744905d776f83af893d2e6c52a

Contents?: true

Size: 245 Bytes

Versions: 164

Compression:

Stored size: 245 Bytes

Contents

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

  def then(arg)
    return nil if arg.nil?
    yield(arg)
  end
end

Version data entries

164 entries across 164 versions & 3 rubygems

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