move hashing and comparison methods into SpriteMap class
This commit is contained in:
parent
2d797ba956
commit
6ba72b9533
@ -35,6 +35,15 @@ module Compass
|
|||||||
content_for_images
|
content_for_images
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def hash
|
||||||
|
self.class.name.hash
|
||||||
|
end
|
||||||
|
|
||||||
|
def eql?(other)
|
||||||
|
other.class == self.class
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def key(uri, options={})
|
def key(uri, options={})
|
||||||
@uri, @options = uri, options
|
@uri, @options = uri, options
|
||||||
|
Loading…
Reference in New Issue
Block a user