recursive ruby function
I am trying to make a recursive ruby function that returns true if a user enters a string  that is palindrome, and false otherwise.  

Here is what I have so far
I am also trying to have a base case for the return value



    void myMethod( int counter)
    {
    if(counter == 0)
         return;
    else
           {
           System.out.println(""+counter);
           myMethod(--counter);
           return;
           }
    } 

recursive ruby function
===

I am trying to make a recursive ruby function that returns true if a user enters a string  that is palindrome, and false otherwise.  

Here is what I have so far
I am also trying to have a base case for the return value



    void myMethod( int counter)
    {
    if(counter == 0)
         return;
    else
           {
           System.out.println(""+counter);
           myMethod(--counter);
           return;
           }
    } 
