Allow stub files

Stub files contain the boilerplate of the solution for an exercise.
See #960.

The Ruby can probably be improved, I'm not very familiar with Ruby idioms.