Skip to content

Commit e80f132

Browse files
authored
Revert "(MODULES-5679) Add a new function ifelse to match ruby's tenary operator"
1 parent 8eb4a64 commit e80f132

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)