Ruby/Przetwarzanie wyjątków: ensure: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Szymon wro (dyskusja | edycje)
Nowa strona: There may be cleanup work that is necessary when a method finishes its work. Perhaps an open file should be closed, buffered data should be flushed, etc. If there were always only one e...
 
Kj (dyskusja | edycje)
m nav
Linia 32:
 
It is possible to use ensure without rescue, or vice versa, but if they are used together in the same begin...end block, the rescue must precede the ensure.
<noinclude>
{{ProstaNawigacja|spis=Ruby|poprzart=Ruby/Przetwarzanie wyjątków: rescue|poprz=Przetwarzanie wyjątków: rescue|nastart=Ruby/Akcesory|nast=Akcesory}}
</noinclude>