How can I do something like this in Ruby?
if variable = something  
    do A  
    do B  
    do D  
elsif variable = something different
    do A
    do B
    do C
    do D
else
    do A
    do C
    do D
A = set of loops with if else
B = set of loops with if else
C = set of loops with if else
D = final steps
Looking for a way to accomplish something like this in Ruby. I'm sure this question is answered somewhere but I don't know what it would be called. I found some information about a gem that allows you to use goto but I would prefer to learn the correct way to do this (also it seems that this might be a joke). I'd prefer to write the code out myself but I can put my actual code up if that helps answer my question.
If someone could just point me in the right direction.
Also if goto isn't a joke why is it not okay to use?
 
     
     
     
    