From: Rodrigo Rosenfeld Rosas Date: 2011-02-16T20:45:10+09:00 Subject: [ruby-core:35260] [Ruby 1.9-Feature#4402][Open] Include an "in" operator Feature #4402: Include an "in" operator http://redmine.ruby-lang.org/issues/show/4402 Author: Rodrigo Rosenfeld Rosas Status: Open, Priority: Normal 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 ---------------------------------------- http://redmine.ruby-lang.org