How to override the "to string" method of an object?
I'm getting the following when printing my object to console:
#<User:0x7fdd9811eb80>
I'm required to have a user-readable version of the object.
I'm required" /> I'm required" /> I'm required"/>
How to override the "to string" method of an object?
I'm getting the following when printing my object to console:
#<User:0x7fdd9811eb80>
I'm required to have a user-readable version of the object.
Override the
#to_smethod. For me it was the following within the class definition: