Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- entity_array = [:users, :days, :element]
- I want to constuct an array by traversing each object
- so self.users would have multiple users each with multiple :days
- :days has multiple :elements
- I want to have all elements stored in an array
- But the entity array could change for example
- entity_array [:users, :elements]
- I have methods to do this now but i'm sure they are not right, i just thought there
- might be some enumerable magic i could do.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement