Though maybe class_function isn't the right name. Perhaps
instance_function or object_function? (All on analogy with
module_function). Also, it might be handy to do this:
class Class
def instance_function(*names)
names.each do |name|
class_eval { define_method(name, &method(name)) }
end
end
end
so you can do this:
instance_function :info, :hello
Regards,
Sean