Redefining #equal? for a really thin wrapper?

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs