The best statement that analyzes how Hugo uses irony in this example is:
Hugo uses dramatic irony by creating a situation where the audience knows something that the main character does not.
This is because the audience is aware that the gypsies are coming to rescue Esmeralda, while Quasimodo believes they are a danger to her, creating a tension between his actions and the actual intentions of the characters involved.