Switch statement

0 views
Skip to first unread message

Sam Woodard

unread,
Oct 23, 2006, 4:13:36 PM10/23/06
to rubyonra...@googlegroups.com
How do you do a basic switch statment (i.e., switch(i) case 1:task;end;
case2:task;end;) in ruby on rails? I can't find any reference to it in
AWDWR.

Sam

--
Posted via http://www.ruby-forum.com/.

Don Pinkster (Phoop)

unread,
Oct 23, 2006, 4:25:06 PM10/23/06
to Ruby on Rails: Talk
Here you can find information about the case statement:
http://www.rubyist.net/~slagell/ruby/control.html

Reply all
Reply to author
Forward
0 new messages