Recursive ruby function in rhtml

can anybody give me an idea(syntax)about how do i go abt writing a ruby
function that is recursive in rhtml file. this function will display
text on the screen.

preferably you would use a helper method or a partial.

just have the method/partial try and render itself within itself until
the base case is reached