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