You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right, to_h sounds reasonable to me. I think that would be something like #270. Note that the conversion should be shallow, not recursive, to follow the usual Ruby to_h convention. See OpenStruct#to_h as an example.
Activity
kateinoigakukun commentedon Dec 16, 2023
For
to_b, I intentionally didn't add it. See #247 for details.terrablue commentedon Dec 16, 2023
I understand. So in that case I can implement it myself for my use case. What about
to_h? It's already used in this meaning in ruby, no?kateinoigakukun commentedon Dec 16, 2023
Right,
to_hsounds reasonable to me. I think that would be something like #270. Note that the conversion should be shallow, not recursive, to follow the usual Rubyto_hconvention. SeeOpenStruct#to_has an example.