Ruby uses syntactic sugar to make some of its syntax more expressive, or easier to read.
Safe Navigation
Safe Navigation Operator (&.)
The most interesting addition to Ruby 2.3.0 is the Safe Navigation Operator(&.).
1 2 3 4 5
# Good # Using the safe navigation operator (&.) if account&.owner&.address # ... end
Array#dig and Hash#dig
Ruby 2.3 brings Array#dig and Hash#dig lets you easily traverse nested hashes, arrays, or even a mix of them. It returns nil if any intermediate value is missing.