Add mutlti dispatch functionality to Ruby