Prefer parens for ternaries and method calls in Ruby. Required for a ternary in a method call as hash value.
Ruby
- You don’t need parens for method calls.
- You don’t need the {} for passing a hash
- You can have some subtle bugs when you throw a ternary operation in the mix!