From: Ronald Fischer Date: 2008-01-25T01:23:32+09:00 Subject: "Parametric class" on inheritance I found in "Ruby Cookbook" (recipe 8.8) a syntactically interesting construct, which I would like to understand. Here is the excerpt from the coding example: require 'delegate' class OrdinalNumber < DelegateClass(Fixnum) ... end I am a bit puzzled about the way the parent class is written: DelegateClass(Fixnum). This looks like a function call, only that DelegateClass is not a function (since it starts with an upper-case letter). How does it work out that DelegateClass(Fixnum) evaluates to something of type "Class"? Ronald -- Posted via http://www.ruby-forum.com/.