Skip to content

Commit 79e43d7

Browse files
Greg Lazarevgylaz
Greg Lazarev
authored andcommitted
Add a specification for bang methods
1 parent 6281ed6 commit 79e43d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

style/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Ruby
131131
instead to emphasize code branches.
132132
* Avoid explicit return statements.
133133
* Avoid using semicolons.
134+
* Avoid bang (!) method names. Prefer descriptive names.
134135
* Don't use `self` explicitly anywhere except class methods (`def self.method`)
135136
and assignments (`self.attribute =`).
136137
* Prefer `detect` over `find`.

0 commit comments

Comments
 (0)