cremes.devlist / mac.com wrote:
> I have a new question regarding _why's post [1].
>
> [1] http://redhanded.hobix.com/bits/wonderOfTheWhenBeFlat.html
>
> In the comments he explains that */asterisk is now being used as a
> replacement for the method #to_a. But I don't see how that's true.

In the comment, he's talking about something different, not case/when
related. (Using the splat with array construction instead of using
Object#to_a to convert a non-array object to a single-element array.)

In case/when, it's instead of if ... include?.

case name
when *board_members
when *historians

vs.

if board_members.include?(name)
elsif historians.include?(name)
....

Cheers,
Dave