It’s pretty wierd, but I do not know what to configure or where to configure. I am trying to print a simple hash value as below:
#!/usr/bin/ruby
names = Hash.new
names[1] = "Jane"
names[2] = "Thomas"
puts names
I expect the output to be
{1=>"Jane", 2=>"Thomas"}
while I get
1Jane2Thomas
Any ideas?
You should use inspect.