Skip to content

Commit 64ce870

Browse files
committed
Merge pull request #61 from eremite/master
Empty lines before return values?
2 parents f9e1e46 + 74a6727 commit 64ce870

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,16 @@ wkhtmltopdf can be installed in one of two methods
183183
end
184184
```
185185
186-
* Use an empty line before the return value of a method (unless it
187-
only has one line), and an empty line between `def`s.
186+
* Use empty lines between `def`s and to break up a method into logical
187+
paragraphs.
188188
189189
```Ruby
190190
def some_method
191-
do_something
192-
do_something_else
191+
data = initialize(options)
193192
194-
result
193+
data.manipulate!
194+
195+
data.result
195196
end
196197
197198
def some_method
@@ -201,7 +202,6 @@ wkhtmltopdf can be installed in one of two methods
201202
202203
* Use RDoc and its conventions for API documentation. Don't put an
203204
empty line between the comment block and the `def`.
204-
* Use empty lines to break up a method into logical paragraphs.
205205
* Keep lines fewer than 80 characters.
206206
* Emacs users might want to put this in their config
207207
(e.g. `~/.emacs.d/init.el`):

0 commit comments

Comments
 (0)