lib/cassandra/uuid.rb in cassandra-0.6 vs lib/cassandra/uuid.rb in cassandra-0.7
- old
+ new
@@ -89,9 +89,13 @@
def <=>(other)
total_usecs <=> other.send(:total_usecs)
end
+ def ==(other)
+ to_s == other.to_s
+ end
+
def inspect(long = false)
"<Cassandra::UUID##{object_id} time: #{
Time.at(seconds).inspect
}, usecs: #{
usecs