I am looking for an instruction that skips the execution of the when block, similar to break for loops. Is it possible?
What I want to avoid is to build like:
case n when 1 if valid foo.bar end when 2 if valid foo.foo end
A more desirable code block would look like this:
case n when 1 break unless valid foo.bar when 2 break unless valid foo.foo end
Obviously, break does not work.
source share