I've put up an EC2 instance that has a whole bunch of historical and
modern versions of Ruby available for you to play with. You can get an
idea from the website:
If you want a shell account, let me know. It's still a work in
progress, but there's enough there to have fun with.
For example, did you know that in Ruby 1.0 there's no puts?
ruby10 -e 'puts "hi"'
-e:1: NameError: undefined method `puts' for main(Object)
But there IS class << obj !
ruby10 -e 'a = Object.new; class << a;
def talk; print "hi\n"; end; end; a.talk'
hi
So yes, per-object behavior was there from the beginning, even if puts
wasn't :-) It's fun to play around with these early versions and
compare.
David
--
David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Now available: The Well-Grounded Rubyist (http://manning.com/black2)
Training! Intro to Ruby, with Black & Kastner, September 14-17
(More info: http://rubyurl.com/vmzN)