aetherknight / recursive-open-struct

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

use self.class instead of constant name to allow inheritance #8

Closed mculp closed 11 years ago

mculp commented 11 years ago

Currently, if you subclass RecursiveOpenStruct, any nested hashes get created as RecursiveOpenStruct objects instead of the subclass.

To fix this, I changed all instances of the RecursiveOpenStruct constant to self.class.