Local Variable - Local Variables in Ruby

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:

    America is the world’s living myth. There’s no sense of wrong when you kill an American or blame America for some local disaster. This is our function, to be character types, to embody recurring themes that people can use to comfort themselves, justify themselves and so on. We’re here to accommodate. Whatever people need, we provide. A myth is a useful thing.
    Don Delillo (b. 1926)

    The variables are surprisingly few.... One can whip or be whipped; one can eat excrement or quaff urine; mouth and private part can be meet in this or that commerce. After which there is the gray of morning and the sour knowledge that things have remained fairly generally the same since man first met goat and woman.
    George Steiner (b. 1929)

    Lay down, lay down the bigly bier,
    Lat me the dead look on;
    Wi’ cherry cheeks and ruby lips
    She lay an’ smil’d on him.

    O ae sheave o’ your bread, true-love,
    An’ ae glass o’ your wine,
    For I hae fasted for your sake
    These fully day [is] nine.
    Anna Gordon Brown (1747–1810)