Project

footing

0.0
No commit activity in last 3 years
No release in over 3 years
An ActiveSupport style utility library that employs delegation instead of monkey patching
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Lines of Code Code Status Dependency Status Dependency Status Build Status Coverage Status Downloads

Footing

An ActiveSupport style utility library that employs delegation instead of monkey patching.

Immutabilty

Footing employs some principles of immutability that are common in functional programming. The integrity of original objects/data is preserved because Footing creates a deep copy by default.

NOTE: This behavior can be overridden to improve performance... just be sure you know what you're doing

Hash

Filter

Recursively filter out unwanted values based on key.

data = { name: "Joe", password: "secret" }
copy = Footing::Hash.new(data)
copy.filter!(:password)
copy.inner_object # => {:name=>"Joe", :password=>"[FILTERED]"}