Ruby/Inicjalizacja obiektów: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Szymon wro (dyskusja | edycje)
Nowa strona: Our Fruit class from the previous chapter had two instance variables, one to describe the kind of fruit and another to describe its condition. It was only after writing a custom inspect...
 
Kj (dyskusja | edycje)
m nav
Linia 47:
 
Sometimes it is useful to provide several ways to initialize an object. Although it is outside the scope of this tutorial, ruby supports object reflection and variable-length argument lists, which together effectively allow method overloading.
<noinclude>
{{ProstaNawigacja|spis=Ruby|poprzart=Ruby/Akcesory|poprz=Akcesory|nastart=Ruby/Pozostałe uwagi|nast=Pozostałe uwagi}}
</noinclude>