Skip to content

A collection of extensions for functional Ruby and Rails programming.

Notifications You must be signed in to change notification settings

whittle/functional

Repository files navigation

Functional

This library is my repository of helpful methods and macros for writing more functional code in Ruby and Rails.

Build Status Dependency Status

How not to require

The separate extensions are intended to be required piecemeal. As such, requiring the lib/functional file does nothing but print a warning. If you really, really want everything, soup-to-nuts, require functional/all.

Contents

Ruby core library extentions:

  • Array#repeating_take
  • BigDecimal#positive?
  • BigDecimal#negative?
  • BigDecimal#unity_sign
  • Kernel#let
  • Object#unfold

Rails extentions:

  • ActiveModel::CalculationPrerequisites
  • ActiveRecord::CalculatedAttribute

About

A collection of extensions for functional Ruby and Rails programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages