Elegant ruby syntax to return the greater of two objects January 3, 2024 by Tarik If you don’t want to spawn an array, there’s the conditional operator: max = a > b ? a : b