lib/jsus/source_file.rb in jsus-0.2.1 vs lib/jsus/source_file.rb in jsus-0.2.2
- old
+ new
@@ -237,8 +237,19 @@
# A pool which the source file is assigned to. Used in #include_extensions!
def pool
@pool
end
+
+ def ==(other) # :nodoc:
+ eql?(other)
+ end
+ def eql?(other) # :nodoc:
+ filename == other.filename
+ end
+
+ def hash
+ [self.class, filename].hash
+ end
end
end
\ No newline at end of file