Skip to content

Commit 30160cd

Browse files
authored
Merge pull request #832 from puppetlabs/revert-823-feature/new_function_ifelse
Revert "(MODULES-5679) Add a new function ifelse to match ruby's tenary operator"
2 parents 8eb4a64 + e80f132 commit 30160cd

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,15 +1179,6 @@ For example, `hash(['a',1,'b',2,'c',3])` returns {'a'=>1,'b'=>2,'c'=>3}.
11791179
11801180
*Type*: rvalue.
11811181
1182-
1183-
#### `ifelse`
1184-
1185-
Shorthand version for if-else: this maps to the ruby tenary operator.
1186-
1187-
For example, `ifelse(4 > 0, 'positive', 'negative')` returns `'positive'`.
1188-
1189-
*Type*: rvalue.
1190-
11911182
#### `intersection`
11921183
11931184
Returns an array an intersection of two.

lib/puppet/functions/ifelse.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.

spec/functions/ifelse_spec.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)