i have to split multiple array based on previous value in greater than present value using ruby? : I need a ruby method for this below details:-

arr = [3,4,5,6,3,4,5,2,3] In this part i have to split multiple array based on previous value in greater than present value it should split another array in example [[3,4,5,6].[3,4,5],[2,3]]