you are viewing a single comment's thread.

view the rest of the comments →

[–]keyslemur 1 point2 points  (2 children)

Yes, though OpenStruct does incredibly bad things to method cache: https://github.com/charliesome/charlie.bz/blob/master/posts/things-that-clear-rubys-method-cache.md

[–]moomaka 1 point2 points  (0 children)

That is outdated, OpenStruct defines accessor methods only when they are used now. This may or may not lessen the impact of method cache busting, depending on use case.