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:

    This is the only “wet” community in a wide area, and is the rendezvous of cow hands seeking to break the monotony of chuck wagon food and range life. Friday night is the “big time” for local cowboys, and consequently the calaboose is called the “Friday night jail.”
    —Administration in the State of Texa, U.S. public relief program (1935-1943)

    The variables of quantification, ‘something,’ ‘nothing,’ ‘everything,’ range over our whole ontology, whatever it may be; and we are convicted of a particular ontological presupposition if, and only if, the alleged presuppositum has to be reckoned among the entities over which our variables range in order to render one of our affirmations true.
    Willard Van Orman Quine (b. 1908)

    Thy great leaves enfold
    The ancient beards, the helms of ruby and gold
    Of the crowned Magi; and the king whose eyes
    Saw the Pierced Hands and Rood of elder rise
    In Druid vapour and make the torches dim....
    William Butler Yeats (1865–1939)