Firstly - you will need to get the phrase right!
It is rUb off on me. It comes from how you rub something against something else, some of it sticks - like if you rub a painted item on some wood, some of the paint ends up on the wood.
You generally use it with personal characteristics, such as madness, happiness, enthusiasm, as your student suggested.