0 votes
in Ruby by
Explain case statement in Ruby.

1 Answer

0 votes
by

In Ruby, we use 'case' instead of 'switch' and 'when' instead of 'case'. The case statement matches one statement with multiple conditions just like a switch statement in other languages.

...