WpUser code factoring

This commit is contained in:
erwanlr
2013-03-11 17:28:32 +01:00
parent 2f14be09b5
commit c0312bbbe5

View File

@@ -63,7 +63,7 @@ class WpUser
end
def ==(other)
other.name == self.name and other.id == self.id and other.nickname == self.nickname
self === other
end
def ===(other)
@@ -71,6 +71,6 @@ class WpUser
end
def eql?(other)
other.name === self.name and other.id === self.id and other.nickname === self.nickname
self === other
end
end