Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
case « Statement « Ruby
Ruby
Statement
case
1.
Here's the general format of the Ruby case statement:
2.
Using the case Statement
3.
If vs Case
4.
case...when with range
5.
use exculsive ranges in case statements
6.
use a case statement to make an assignment, which omits the value to test
7.
elsif and case
8.
All Ruby expressions return a result
9.
Case with regular expression