Реклама

Ruby – Local variables

A local variable has a name starting with a lower case letter or an underscore character (_). Local variables do not, like globals and instance variables, have the value nil before initialization: The first assignment you make to a local variable acts something like a declaration. If you refer to an uninitialized local variable, the ruby interpreter…