How does Infinity Edge interact with Rageblade and the On-hit build?

Is it worth it as a last item or is it better to maybe get something else?