If it's just a bruise I would probably go ahead and ride. But then, I have been known to not ride in the rain when under the instructions of a doctor to not get the cast wet. She didn't say anything about staying off the bike.
Like has been said; it really just depends on how
you feel.
"If you're dumb enough, you don't have to be tough."