move hashing and comparison methods into SpriteMap class
This commit is contained in:
parent
2d797ba956
commit
6ba72b9533
@ -34,6 +34,15 @@ module Compass
|
|||||||
def to_s
|
def to_s
|
||||||
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={})
|
||||||
|
Loading…
Reference in New Issue
Block a user