On Sun, Mar 10, 2002 at 11:59:07AM +0900, David Corbin muttered...
: The following is from my debugging through xmlc.rb
: 
: Breakpoint 1, dump_element at xmlc.rb:94
: xmlc.rb:94:                                     children.push ch unless 
: (ch == "" || ch == nil)
: (rdb:1) p ch
: "\"\n\""
: (rdb:1) p children
: []
: (rdb:1) s
: xmlc.rb:94: `undefined method `to_str' for nil' (NameError)
: 
: How is 'nil' trying to do a to_str?
: 
: Thanks
: David
: 
: 

I believe it's a case of ch is a string and therefore to do an equlity check
ruby is doing:

  ( ch.to_str == "" || ch.to_str == nil.to_str )
  
*but* I could be being stupid and wrong,

Regards,

Chris

-- 
+------------------------------------------------------------------+
| Chris Ross   |      chris / darkrock.co.uk | ctr / ferite.org        |
|              | http://www.darkrock.co.uk | http://www.ferite.org |
+------------------------------------------------------------------+
"My lawyer broke his nose -- chasing a parked ambulance!"