aetherknight / recursive-open-struct

OpenStruct subclass that returns nested hash attributes as RecursiveOpenStructs
Other
277 stars 54 forks source link

Two new features for recurse_over_arrays #6

Closed SebastianVomMeer closed 11 years ago

SebastianVomMeer commented 11 years ago

These are implementations and specs for two special cases that do not work correctly a the moment.

A hash inside an array inside a hash inside a hash is not parsed:

RecursiveOpenStruct.new({
  foo: { 
    bar: [ { blah: 1} ] 
  } 
}, recurse_over_arrays: true)

A hash inside an array inside an array is not parsed:

RecursiveOpenStruct.new({
    bar: [ [ { blah: 1} ] ]
}, recurse_over_arrays: true)
aetherknight commented 11 years ago

Oh, pushed out in version 0.4.3.