Elegant ruby syntax to return the greater of two objects
- by doctororange
Of course there are a thousand ways to get this done, but is the simplest (or most elegant) way to achieve this?
[4,8].max
That's actually not too shabby, but what would you do?