Sha256: 3b95da975f8fcc65ba6d7a5080a18c8a52031de73fc6d9acfcdfe95604a69b5f

Contents?: true

Size: 278 Bytes

Versions: 12

Compression:

Stored size: 278 Bytes

Contents

# Adds two integers together.
# @param x The first integer to add.
# @param y The second integer to add.
# @return [Integer] Returns the sum of x and y.
# @example Example of adding two integers.
#   test::add(1, 2) => 3
function test::add(Integer $x, Integer $y) {
  $x + $y
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-strings-2.4.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-2.3.1 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-2.3.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-2.2.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-2.1.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-2.0.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-1.2.1 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-1.2.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-1.1.1 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-1.1.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-1.0.0 spec/fixtures/acceptance/modules/test/functions/add.pp
puppet-strings-0.99.0 spec/fixtures/acceptance/modules/test/functions/add.pp