Rubyists are rediscovering Smalltalk, or at least its idioms, often one at a time...
>> class A
>> def a_whole_new_me
>> self.class.new
>> end
>> end
>> a = A.new
>> a.class
=> A
>> a.a_whole_new_me.class
=> A
>> class B < A; end
>> b = B.new
>> b.class
=> B
>> b.a_whole_new_me.class
=> B
Attention all Rubyists, buy these books...
1 comment:
There was a used Smalltalk With Style on Amazon for under $6! I win! :) I'll wait on the other one for now. Thanks for the recommendation.
Post a Comment