Is there a method in ruby to turn fixnum like 74239 into an array like [7,4,2,3,9]?
74239
[7,4,2,3,9]
You can convert to string and use the chars method:
74239.to_s.chars.map(&:to_i)
Output:
[7, 4, 2, 3, 9]
Its a bit more elegant than splitting.