Actions
Feature #4402
closedInclude an "in" operator
Status:
Closed
Assignee:
-
Target version:
-
Description
=begin
It would be great to support the syntax
return if result in [nil, 'exit', 'quit']
which is a more humanized way to write
return if [nil, 'exit', 'quit'].include? result
The syntax is already support in for-in loops:
for i in ['a', 'b', 'c']; puts i; end
=end
Actions
Like0
Like0