I ran the following code:

all = []

ObjectSpace.each_object do |obj|
  all << obj
end

File.open('objectspace.txt','w') do |f|
  f.puts all
end


and I was surprised to find comments in objectspace.txt. I was under the
impression that Ruby skips comments when parsing code.

Very strange behaviour... Anyone cares to explain? Thanks