summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/autoload.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-06-06 17:22:03 +0200
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit9592dd896c6aab9a3e9b0181c943e7c9ba3d2d6d (patch)
treeb2823dc0ed736e3c4cb34f4a0dc5756c7a4061cd /spec/unit/util/autoload.rb
parent3696d951f70f5b94b49619dfbc57138d5241bbb8 (diff)
downloadpuppet-9592dd896c6aab9a3e9b0181c943e7c9ba3d2d6d.tar.gz
puppet-9592dd896c6aab9a3e9b0181c943e7c9ba3d2d6d.tar.xz
puppet-9592dd896c6aab9a3e9b0181c943e7c9ba3d2d6d.zip
Fix #3871 - Add the 'in' operator
This operator allows to find if the left operand is in the right one. The left operand must be resort to a string, but the right operand can be: * a string * an array * a hash (the search is done on the keys) This syntax can be used in any place where an expression is supported. Syntax: $eatme = 'eat' if $eatme in ['ate', 'eat'] { ... } $value = 'beat generation' if 'eat' in $value { notice("on the road") } Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions