Skip to content

Commit

Permalink
- add specific style
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Jun 25, 2011
1 parent 435858b commit 3f4df6a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,17 @@ Short example:
end # def somefunc
end # class Foo

## Specific cases

### Hash synatx

Use of the "hash colon" syntax (ruby 1.9) is not accepted: { foo: "bar" }

### String#[]

String#[] with one numeric argument must not be used due to bugs between ruby
versions.

* Do not use this: "foo"[0]
* Use this: "foo"[0,1]

0 comments on commit 3f4df6a

Please sign in to comment.