Paste Search Dynamic
family
  1.  
  2.  fork  download
  3. family = {  uncles: ["Ram", "Shiv"],
  4.             sisters: ["Saumya", "Kiran"],
  5.             brothers: ["Om", "Kishan"]
  6.           }
  7.  
  8. immediate_family = family.select do |k, v|
  9.   k == :sisters || k == :brothers
  10. end
  11.  
  12. arr = immediate_family.values.flatten
  13.  
  14. p arr
  15.  
Parsed in 0.003 seconds