ruby-protobuf / protobuf

A pure ruby implementation of Google's Protocol Buffers
https://github.com/ruby-protobuf
MIT License
462 stars 101 forks source link

Alias #eql? to #== and define #hash on Protobuf::Message #398

Open drcapulet opened 5 years ago

drcapulet commented 5 years ago

Hashes (and some methods of Array) use the #eql? and #hash methods, this defines them so that those operations work correctly.

film42 commented 5 years ago

Looks good. Needs a rubocop fix but otherwise :+1: .

drcapulet commented 4 years ago

Ping @film42, anything else needed here?