From: Robert Feldt Date: 2001-05-28T14:51:26+09:00 Subject: [ruby-talk:15827] Re: is it possible to dynamically coerce objects types in Ruby? On Mon, 28 May 2001, Mathieu Bouchard wrote: > Three months ago I have written: > > module ArithInterface > def +(other); raise NotImplementedError; end > def -@; raise NotImplementedError; end > end > > module ArithMixin > include ArithInterface > def -(other) > self + - other > end > end > > and then I stopped there. ;-) > Well, its a start... ;-) /Robert