Ruby/Zmienne instancji: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Szymon wro (dyskusja | edycje)
Nowa strona: An instance variable has a name beginning with @, and its scope is confined to whatever object self refers to. Two different objects, even if they belong to the same class, are allowed ...
 
Kj (dyskusja | edycje)
m nav
Linia 24:
 
Notice above that i does not report a value for @bar until after the set_bar method is invoked.
<noinclude>
{{ProstaNawigacja|spis=Ruby|poprzart=Ruby/Zmienne globalne|poprz=Zmienne globalne|nastart=Ruby/Zmienne lokalne|nast=Zmienne lokalne}}
</noinclude>