I have very often the situation, that i want to Debug something in Ruby. Then i have an output to the console with "puts".
Following example:
Testvariable = 4
puts Testvariable
The output is of course:
4
Now i have a lot of outputs and therefore i write very often something like this:
Testvariable = 4
puts "Testvariable= " + Testvariable
The output is then:
Testvariable= 4
Now this was a very easy case but i hope that it shows what my question is. Does a possibility like this exist???
Testvariable = 4
prettyputs Testvariable
and that the output is directly
Testvariable = 4
I hope you do understand, what my "problem" is? Of course it isnt a lot of work to write the complete string down, but i just want to know if there is a fast and easy possibility?