|
|
|
|
|
by iamrohitbanga
2828 days ago
|
|
I feel where Ruby's optional parenthesis syntax really shines is in method call chaining. e.g. employees.flat_map(&:addresses).map(&:city).uniq.sort
# in place of
employees().flat_map(&:addresses).map(&:city).uniq().sort()
|
|