- Add LogStash::Event#==

This commit is contained in:
Jordan Sissel 2011-02-04 02:28:55 -08:00
parent 88e2597983
commit fae90d1ae6

View file

@ -141,4 +141,14 @@ class LogStash::Event
#$stderr.puts "sprintf(#{format.inspect}) => #{result.inspect}"
return result
end # def sprintf
public
def ==(other)
puts "#{self.class.name}#==(#{other.inspect})"
if !other.is_a?(self.class)
return false
end
return other.to_hash == self.to_hash
end # def ==
end # class LogStash::Event