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
I'm creating a XML serializer, that comes after a mapper and a validator, and they share the same methods, so a code method exists in both mapper and validator. To avoid manually creating every field, I'm using some metaprogramming to set the values on the XML serializer, when I use a wrap I cannot set the child elements.
You can call #type on the first element to get its class. This is an anonymous class generated by the wrap method to represent the PersonalInformation:
I'm creating a XML serializer, that comes after a mapper and a validator, and they share the same methods, so a
code
method exists in both mapper and validator. To avoid manually creating every field, I'm using some metaprogramming to set the values on the XML serializer, when I use awrap
I cannot set the child elements.I have the following the following class:
I need to access the elements of
PersonalInformation
so I've tried:User.new.class.elements
But since the
PersonalInformation
it's an element itself, I don't have a way to find it's child elements. Am I missing something?The text was updated successfully, but these errors were encountered: