I always find it useful to extend ruby's core, such as Object
or String
classes.
What is the correct and most organized way to extend the core? should i make files for each class i extend in the initializers
or libs
directory?
I always find it useful to extend ruby's core, such as Object
or String
classes.
What is the correct and most organized way to extend the core? should i make files for each class i extend in the initializers
or libs
directory?
For this sort of thing, I would treat the code for the extensions like a local gem that is located in your lib/ directory, but required from an initializer called something like "core_extensions.rb".