If you controlled a creature with power 4 or greater when you declared Ruby as an attacker, it doesn't matter whether you still control one as her triggered ability resolves. Ruby will still get +2/+2 until end of turn.