move hashing and comparison methods into SpriteMap class

This commit is contained in:
Scott Davis 2011-05-12 23:44:21 -04:00
parent 2d797ba956
commit 6ba72b9533

View File

@ -35,6 +35,15 @@ module Compass
content_for_images
end
def hash
self.class.name.hash
end
def eql?(other)
other.class == self.class
end
def key(uri, options={})
@uri, @options = uri, options