    # File lib/compass/sass_extensions/sprites/sprite_methods.rb, line 57
            def generate
              if generation_required?
                if kwargs.get_var('cleanup').value
                  cleanup_old_sprites
                end
                engine.construct_sprite
                Compass.configuration.run_sprite_generated(engine.canvas)
                save!
              else
                log :unchanged, filename
              end
            end