Saltar al contenido principal
0

Por ahora, esta lección está en inglés.

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.