Re: Sowas wie switch() (PHP) gesucht

Philipp Kern <[email protected]> Sun, 01 Aug 2004 19:51:07 +0200
Newsgroups gmane.comp.lang.ruby.german
Organization 0x539.de
Message-ID <[email protected]>
On So, 2004-08-01 at 19:48, Dirk Einecke wrote:
> Gibt es in Ruby sowas wie switch() in PHP in Ruby? Klar ich könnte es so 
> machen:

case foo
  when 1 then puts 1
end

Regards,
Philipp Kern