2 ms·
I prefer the implementation of Mongoid's #do_or_do_not, which checks for the method's existence rather than the object's (http://rubydoc.info/github/mongoid/mo
by themgt 16y ago
I prefer the implementation of Mongoid's #do_or_do_not, which checks for the method's existence rather than the object's
(http://rubydoc.info/github/mongoid/mongoid/master/Mongoid/Extensions/Object/Yoda http://rubydoc.info/github/mongoid/mongoid/master/Mongoid/Ex...)