|
|
|
|
|
by jballanc
4960 days ago
|
|
MyModule.camelize doesn't support polymorphism (you could even call it procedural programming in a OOP shell), but something like Camelizable.new(my_string).camelize does. I'm still convinced that what Ruby needs is more object composition (and maybe a way to override default literal construction), and that refinements are a cannon to shoot a mosquito. |
|
Which means if I want to add camelizable to my AnnotatedString I have to monkey patch Camelizable#initialize.