Included comparable and added <=> method.

This commit is contained in:
Adrian Madrid 2008-12-06 14:17:19 -07:00
parent 2f242227ae
commit 761b125687
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,8 @@ module XGen
module Driver
class ObjectID
include Comparable
UUID_STRING_LENGTH = 24
@ -37,6 +39,10 @@ module XGen
def to_s
@uuid
end
def <=>(other)
to_s <=> other.to_s
end
end
end
end