What is the simplest way to split arrays into multiple arrays based on some conditions? In my scenario, I need to move the integer and the string values to different arrays.
You're looking for Enumerable#partition:
x = [1, 2, 3, "a", "b", 4] numbers, not_numbers = x.partition{|item| item.kind_of?(Fixnum)} # => [[1, 2, 3, 4], ["a", "b"]]