Is there a valid reason for there not being a method to return the data of a standard ruby struct as a hash (member, value pairs)? Seeing that structs and hashes have very similar use cases, I m surprised that no such method exists. Or does it, and I m just too blind?
易于执行(而且现在我已经这样做),但标准校准缺乏这种功能,我认为我可能没有真正掌握废墟中的障碍概念。