Ruby 2.7 - New Syntax To Refer Block Arguments Ruby < 2.7 [1, 2, 3, 4, 5].map { |x| x * 7 } Ruby 2.7 [1, 2, 3, 4, 5].map { @1 * 7 } Source