3 ms·
Ruby uses messages for methods, allowing cheap delegation; classes can be extended (monkey patched) after definition. I doubt Ruby OOP code would avoid using a
by tln 10y ago
Ruby uses messages for methods, allowing cheap delegation; classes can be extended (monkey patched) after definition.
I doubt Ruby OOP code would avoid using all metaprogramming, at the very least attr_accessor!
- titanomachy 10y agoTo me, metaprogramming means writing new macros/templates, not just using the "standard" ones.