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
Updated by naruse (Yui NARUSE) almost 14 years ago
- Status changed from Open to Closed
=begin
Duplicated: http://redmine.ruby-lang.org/issues/show/3845
=end
Actions
Like0
Like0