From: Lyndon Samson Date: 2005-04-19T03:13:25+09:00 Subject: Re: [ANN] Article: Seeing Metaclasses Clearly From the article "It's an important lesson: objects do not store methods, only classes can." Might be nice to contrast this with prototype based languages like javascript. Or ProtoRuby ;-) class ProtoObj def initialize @methods = {} end def addMethod(name, &method) @methods[name.id2name] = method end def method_missing(method, *args) @methods[method.id2name].call(*args) end end dog = ProtoObj.new dog.addMethod(:bark) { puts "Bark" } dog.bark