Siratinee Sukachai wrote in post #994228:
> Any suggestions?

Yes - make a standalone minimal program which demonstrates the problem.

You're showing your code out of context - we can't see what class each 
method is defined in. If you can make a simple program which 
demonstrates the problem, then we can run it, and can debug it for you - 
although more than likely you'll find the problem yourself as part of 
the process of boiling it down to a simple case.

Right now, the code you've posted isn't even valid Ruby:

class ConvertToYaml
{
  ...
}    # wrong

class ConvertToYaml
  ...
end  # right

-- 
Posted via http://www.ruby-forum.com/.