contestada

In the sentence below, what literary device is being used, and what does it mean?

"Immediately, the enchanting woman began doting on us, like a tiny yellow butterfly, fluttering about" (130).