WpUser code factoring
This commit is contained in:
@@ -63,7 +63,7 @@ class WpUser
|
|||||||
end
|
end
|
||||||
|
|
||||||
def ==(other)
|
def ==(other)
|
||||||
other.name == self.name and other.id == self.id and other.nickname == self.nickname
|
self === other
|
||||||
end
|
end
|
||||||
|
|
||||||
def ===(other)
|
def ===(other)
|
||||||
@@ -71,6 +71,6 @@ class WpUser
|
|||||||
end
|
end
|
||||||
|
|
||||||
def eql?(other)
|
def eql?(other)
|
||||||
other.name === self.name and other.id === self.id and other.nickname === self.nickname
|
self === other
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user