Breaking feature update which revises how coercion works, resolving potential bugs and conflicts.
to_hash
,to_array
andto_struct
methods have been removed.- Hash, Array and Struct classes now have a
to()
method (as well as the currentfrom()
method).- Use
Hash.from(object)
orobject.to(Hash)
(or use withArray
orStruct
or types of Struct; and whereobject
is a variable of one of these types).
- Use