Aller au contenu principal
0

Cette leçon est en anglais pour le moment.

Methods and errors

A method gives a name to a piece of work so you can reuse it anywhere. And when the work cannot be done, Ruby has a clean way to say so: raise an error, then rescue it where you can handle it.