[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73660] [Ruby trunk Feature#12047]Set#=== (aliased to include?)
From:
sawadatsuyoshi@...
Date:
2016-02-03 00:18:02 UTC
List:
ruby-core #73660
Issue #12047 has been updated by Tsuyoshi Sawada. I think that is ad hoc. Splat could be used, just like with arrays. ~~~Ruby case my_command when *GOOD_COMMANDS then puts "Yay!" when *BAD_COMMANDS then puts "Boo!" when *ODD_COMMANDS then puts "Whaa?" end ~~~ ---------------------------------------- Feature #12047: Set#=== (aliased to include?) https://bugs.ruby-lang.org/issues/12047#change-56850 * Author: Gavin Kistner * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Add `Set#===` as an alias for `Set#include?` so that sets may be used in `case` statements: ~~~ require 'set' GOOD_COMMANDS = Set[ :foo, :bar, :jim ] BAD_COMMANDS = Set[ :baz, :bax, :jam ] ODD_COMMANDS = Set[ :quux, :xyzzy ] case my_command when GOOD_COMMANDS then puts "Yay!" when BAD_COMMANDS then puts "Boo!" when ODD_COMMANDS then puts "Whaa?" end ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>