The documentation of the method should be placed before the method, followed by an empty line, then the def, and between the end and the new method two empty lines.