Skip to content

Commit

Permalink
Prefix unused variables and parameters with _
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Lazarev committed Jul 6, 2015
1 parent 935c229 commit bef5980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions style/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Ruby
calls.
* Prefer `if` over `unless`.
* Use `_` for unused block parameters.
* Prefix unused variables or parameters with underscore (`_`).
* Use `%{}` for single-line strings needing interpolation and double-quotes.
* Use `{...}` for single-line blocks. Use `do..end` for multi-line blocks.
* Use `?` suffix for predicate methods.
Expand Down

0 comments on commit bef5980

Please sign in to comment.