[ruby] How to find a min/max with Ruby