I'm looking into DCI (Data, Context Interaction -- http://www.artima.com/articles/dci_vision.html). I'm unhappy with the implementation I'm seeing, so I'm looking at rolling my own. I've decided that I want to use wrapper objects--really, really thin wrapper objects. In particular, my plan is to redefine the equality operators, like so: https://gist.github.com/student/9797293 Of course, these things don't inherit from Object or Kernel. I don't want to go into the debate about how to implement DCI here. My question is simply whether or not anything in the ruby core breaks if I redefine #equal? and #__object_id__.
on 2014-03-27 03:29