General

Profile

oelmekki (Olivier El Mekki)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

12/17/2013

05:42 PM Ruby Feature #9253: Regexp named match and case statement
I didn't know of this syntax, thanks Yusuke.
mame (Yusuke Endoh) wrote:
> There is a way to capture it: use $~[:b] instead of b. Nonetheless, I like this proposal.
> ...
oelmekki (Olivier El Mekki)

12/16/2013

10:16 PM Ruby Feature #9253 (Open): Regexp named match and case statement
Hello,
I've notice there's no mean to use captured named matches with case
statement :
> a, b = "foo bar", nil
=> ["foo bar", nil]
> case a
> when /foo (?<b>bar)/ then p b
> end
nil
This i...
oelmekki (Olivier El Mekki)

Also available in: Atom