Skip to content

Commit

Permalink
Add a specification for bang methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Lazarev authored and gylaz committed Jan 4, 2014
1 parent 6281ed6 commit 79e43d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions style/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Ruby
instead to emphasize code branches.
* Avoid explicit return statements.
* Avoid using semicolons.
* Avoid bang (!) method names. Prefer descriptive names.
* Don't use `self` explicitly anywhere except class methods (`def self.method`)
and assignments (`self.attribute =`).
* Prefer `detect` over `find`.
Expand Down

0 comments on commit 79e43d7

Please sign in to comment.