Sha256: 960fe810c212a20378d54a9390d127c9ab043cdff055534939c175567a7967dd
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
# Recurator Recurator is object for recursive processing like Enumeator. Recurator is included `Enumeable` module. ## Synopsis ```ruby 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recurator-0.0.1 | README.md |