Hi --

On Mon, 12 Aug 2002, Tim Hammerquist wrote:

>   - Ruby's object system is beautiful, elegant, and practical.  It's
>     much more "pure" (in the Smalltalk definition) than either Perl or
>     Python and allows you to retroactively modify pre-existing instances
>     of an object at runtime by modifying their class. (See
>     <http://www.unr.nevada.edu/~tahammer/hack/ruby/> for an example).

Or even by adding methods to the object itself:

  str = "Ruby is an extraordinary language."
  def str.vowels
    scan(/[aeiou]/)
  end
  p str.vowels
    => ["u", "i", "a", "e", "a", "o", "i", "a", "a", "u", "a", "e"]


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav