# File lib/scrubyt/output/result_node.rb, line 41
    def to_hash
      result = []
      flat_hash_inner = lambda {|e, hash|
        hash[e.name.to_sym] = hash[e.name.to_sym] ? hash[e.name.to_sym] + "," + e.to_s : e.to_s  if e.write_text && !e.to_s.empty?
        e.each {|c| flat_hash_inner.call(c, hash)  }
        hash
      }
      self.each {|e| result << flat_hash_inner.call(e, {}) }
      result
    end