> Peter Michaux wrote: > >> Hi, >> >> I am trying to explain why the fact that Ruby's classes are never >> closed is advantageous. I can only think of relatively complex >> examples >> like Rails plugins. Does anyone have an interesting, standalone >> example >> showing the utility of open classes in under 30 lines? under 20? I have some code where I'm unpacking utf-8 text into arrays of integers all the time. So I could have 'unpack' all over the place, but I just did: class String def explode self.unpack('U*') end end -Tim