Local Variables in Ruby
Ruby as a language was inspired also by Perl, but in this case, the notation was made simpler: a global variable name must be preceded by a $ sign, like $variable_name, while a local variable has simply no $ sign in front of its name, like variable_name (while in perl all scalar values have a $ in front).
Read more about this topic: Local Variable
Famous quotes containing the words local, variables and/or ruby:
“These native villages are as unchanging as the woman in one of their stories. When she was called before a local justice he asked her age. I have 45 years. But, said the justice, you were forty-five when you appeared before me two years ago. Señor Judge, she replied proudly, drawing herself to her full height, I am not of those who are one thing today and another tomorrow!”
—State of New Mexico, U.S. public relief program (1935-1943)
“Science is feasible when the variables are few and can be enumerated; when their combinations are distinct and clear. We are tending toward the condition of science and aspiring to do it. The artist works out his own formulas; the interest of science lies in the art of making science.”
—Paul Valéry (18711945)
“It is better to be looked over than overlooked.”
—Mae West, U.S. actor, screenwriter, and Leo McCarey. Ruby Carter (Mae West)