@tomot said:
..., I realize that Goto can easily be satisfied using if.
No it cannot.
@tomot said:
My current Ruby already contains some 20 if statements, which are goto's.
No they are not branching statements, they are conditional statements.
But you CAN make them branch off to some other part of your code, by making method calls, in response to the boolean evaluation of the conditional expressions.
if condition_is_true then call_method_one() else call_method_two();
@tomot said:
I should be able link via another if statement the sharing of the stored registry value of the @stylewidth in Dialog 1 and Dialog 2..
Again... in a procedural language, a method call (aka procedure call,) takes the place of the old goto from the old sequential linear languages like Fortran and GW-BASIC.
Whenever you identify a particular place in your code, that you need to "goto" (usually repeatedly,)... then THAT is the spot where you need to begin a method.