Some random Ruby core extensions that I use for my own projects.

So far the following functions are implemented:

  • Enumerable:

    • Calculating product, sum, inverted sum, reverse sum, and square root sum.

    • Calculating means: arithmetic, geometric, harmonic, and root mean square.

  • Float:

    • Rounding, ceiling, and flooring to specified decimal places.

    • Converting to percent with given decimal places.

  • Math

    • Calculating roots.

  • Object

    • Method for calling other methods that may not exist.