Implement Struct#to_h .
Merge pull request #2163 from take-cheeze/struct_to_h

Implement Struct#to_h .