method of rolling up text

i have stuck in rolling up text method in ruby

I think you need to give more detail on what you are trying to do,
what you have tried, and what problems you encountered.

Colin