Project

recurator

0.0
No commit activity in last 3 years
No release in over 3 years
Recurator is object for recursive processing like Enumeator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 2.11
 Project Readme

Recurator

Gem Version Build Status

Recurator is object for recursive processing like Enumeator.

Recurator is included Enumeable module.

Synopsis

obj = {
  "one" => {
    "two" => [1,2,3],
    "three" => "foo",
    "four" => {
      "five" => {}
    }
  }
}
recur = Recurator.new obj # or obj.to_recur

p recur.values.grep(Hash)
#=> [{"two" => [1,2,3],"three" => "foo","four" => {"five" => {}}}, {"five" => {}}, {}]

p recur.keys
#=> ["one", "two", "three", "four", "five"]

Install

gem install recurator