talira

Ruby Facets

Extension methods for Ruby's core classes, loadable one method at a time

open sourceBSD-2-Clausefree

Ruby Facets is a collection of extensions to Ruby's core classes and standard library, plus a few small reusable classes and modules. Most methods live in their own files, so you can require a single method (facets/array/to_ranges), a group, or the whole core collection. It dates from 2004, is still maintained by Thomas Sawyer, and version 4.2 requires Ruby 3.1 or newer.

Problems it solves

  • add handy extension methods to Ruby core classes
  • load only the core extensions I need in a Rails app
  • a utility belt of methods for Ruby strings, arrays and hashes

Features

  • extensions to Ruby core classes and stdlib
  • one method per file for granular requires
  • extra reusable classes and modules