Advertisement
Guest User

Untitled

a guest
Dec 1st, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2.  
  3. entity_array = [:users, :days, :element]
  4.  
  5. I want to constuct an array by traversing each object
  6.  
  7. so self.users would have multiple users each with multiple :days
  8.  
  9. :days has multiple :elements
  10.  
  11. I want to have all elements stored in an array
  12.  
  13. But the entity array could change for example
  14.  
  15. entity_array [:users, :elements]
  16.  
  17. I have methods to do this now but i'm sure they are not right, i just thought there
  18. might be some enumerable magic i could do.
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement