Hacker News new | past | comments | ask | show | jobs | submit login
Gibbler: Git-like hashes for Ruby objects (code.google.com)
2 points by delano on June 26, 2009 | hide | past | favorite | 2 comments



For someone who's not familiar with Ruby, what advantages does this provide over the built-in hash method on objects?


Hey sorry for the late reply.

The built-in hash method returns Integer values which can change between versions of Ruby (1.8, 1.9, JRuby, etc...). I needed a hash value that was consistent between all of them for the same object and which also reduced the possibility of collisions.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: