Less pythonic ruby