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.


Tags: operator, Development, Broadcasting, Ruby, Screencasts, ruby-banter

Level: any Date: September 25, 2007 Votes: 0 User: scoundrel  Comments:
 
 

No Response(s) to this entry

Subscribe to comments with RSS.