# File lib/test/rails/render_tree.rb, line 62
  def render(*args)
    @level ||= 0

    print '  ' * @level

    case args.first
    when String then
      p args.first
    when Hash then
      hash = args.first
      if hash.include? :collection and hash.include? :partial then
        puts "%p => %p" % [:collection, hash[:partial]]
      else
        found = hash.keys & RENDERS
        if found.length == 1 then
          puts "%p => %p" % [found.first, hash[found.first]]
        else
          raise "Dunno: %p" % [hash]
        end
      end
    else
      raise "Dunno: %p" % [args]
    end

    @level += 1
    result = plain_render(*args)
    @level -= 1
    result
  end