Subject: Re: How to use "case" to match class names? (=== not so funny)
From: Iaki Baz Castillo <ibc aliax.net>
Date: Mon, 15 Aug 2011 20:47:49 +0900
References: 386631386679
In-reply-to: 386679
2011/8/15 Ryan Davis <ryand-ruby / zenspider.com>:
> case
> when [String, Whatever].include? klass then
> # ...
> else
> # ...
> end
The most ellegant way. Thanks.
--
Iaki Baz Castillo
<ibc / aliax.net>