Softwire Interview Question

Implement a unit converter in ruby