3 ms·
Ruby has a meta object protocol. The net effect of the language isn't as powerful as Common Lisp since you don't have code-as-data in method definitions, but R
by drnewman 3y ago
Ruby has a meta object protocol. The net effect of the language isn't as powerful as Common Lisp since you don't have code-as-data in method definitions, but Ruby's object system is comparably powerful as CLOS (though made in the image of Smalltalk) it comes with a meta protocol for methods, objects, classes, modules, even lexical variables.
https://ruby-doc.org/3.2.2/Object.html https://ruby-doc.org/3.2.2/Object.html
https://ruby-doc.org/3.2.2/Method.html https://ruby-doc.org/3.2.2/Method.html
https://ruby-doc.org/3.2.2/Class.html https://ruby-doc.org/3.2.2/Class.html
https://ruby-doc.org/3.2.2/Module.html https://ruby-doc.org/3.2.2/Module.html
https://ruby-doc.org/3.2.2/Binding.html https://ruby-doc.org/3.2.2/Binding.html