Support for 2.1 Syntax
justin808 opened this issue · 3 comments
justin808 commented
Should the style guide mention:
- Named parameters
- Using the
{ key: value }
rather than the{ :key => value }
syntax
tsara27 commented
I think it should be mentioned.
clizzin commented
Thanks for the suggestions.
Re named parameters: We are still using Ruby 1.9.3, so this is not relevant for us. We will update the style guide when we migrate to Ruby 2.x.
Re hash syntax: See my comment in #20.
justin808 commented
Good opportunity for a fork for those using Ruby 2.1 (and having a different opinion on the { a: "1" } style vs the { :a => "1" } style.