Overloading to_s method


Programming is not new to me, but Ruby is. I am having problems with
overloaded ‘to_s’ method. Lets say we have a simple class with this
method. When I use it, it prints what I have written, but it adds ‘nil’
to the end. How do I get rid of it. Formatting string seems to be a way
around, but is there something I am doing wrong?

Nevermind :slight_smile: I got it.