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.
I would like to suggest adding
to_b
andto_h
toJS::Object
, to convert into a ruby boolean respective hash.to_b → boolean
Converts
self
totrue
orfalse
:to_h → hash
Converts
self
to a Hash:The text was updated successfully, but these errors were encountered: