Set Ruby variable if it is not already defined

Viewed 61811

In Ruby, how do you set a variable to a certain value if it is not already defined, and leave the current value if it is already defined?

4 Answers
Related