From 9cafbc642c8d223a929d6c849bf557f4be3b09c7 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Wed, 20 Apr 2011 19:27:53 -0700 Subject: [PATCH] Consistent hashing of the Sprite importer object --- lib/compass/sass_extensions/sprites/sprites.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/compass/sass_extensions/sprites/sprites.rb b/lib/compass/sass_extensions/sprites/sprites.rb index 12bfd9d4..c0c5dc21 100644 --- a/lib/compass/sass_extensions/sprites/sprites.rb +++ b/lib/compass/sass_extensions/sprites/sprites.rb @@ -49,5 +49,14 @@ module Compass def to_s "" end + + def hash + self.class.name.hash + end + + def eql?(other) + other.class == self.class + end + end end