casual_support
Utility methods as extensions to Ruby core objects, a la Active Support.
Also a nod to the epic Facets library, which has a vast quantity and wide variety of utility functions. casual_support distinguishes itself in a few ways:
- Focus on fast implementations. See the benchmarks directory for performance comparisons with typical and alternative implementations.
- Low memory footprint without required cherry-picking. Cherry-picking is still possible though!
- Intended to be used alongside Active Support. Does not clash with Active Support methods, and overrides only a few to provide more performant implementations.
Utility Methods
- Boolean
- Comparable
- Date
- Enumerable
- Hash
- Integer
- Numeric
- String
- Struct
- Time
Installation
Install from Ruby Gems:
$ gem install casual_support
Then require in your Ruby script:
require "casual_support"
Contributing
Run rake test
to run the tests. You can also run rake irb
for an
interactive prompt that pre-loads the project code.