converter: ruby < 2 does not have Range#size