Ruby Banter #005: The Case Equality, Treequal or Equaal operator

Posted in Development on September 25, 2007


Ruby Banter #005: The Case Equality, Treequal or Equaal operator

The Case Equality, Treequal or Equaal operator, however you want to call it, allows us to match objects in a more meaningful manner than plain equality. In this episode Manfred shows how you can override the method on your own classes to do advanced matching. Please note that, although Manfred thinks he's implementing the disjoint set of markers, he's actually implementing the union.

Watch Video

Tags: Ruby, Ruby Banter, operator