Guest User

Untitled

a guest
Jan 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. array = ["sam", 1, 2, 3, "coffee", 'beer']
  2. arrays = array.partition {|e| e.is_a?(String) }
  3. arrays.each do |a|
  4. p a
  5. end
Add Comment
Please, Sign In to add comment