rewrite_resbody (UnifiedRuby)

    # File lib/unified_ruby.rb, line 251
      def rewrite_resbody(exp)
        exp[1] ||= s(:array)        # no args

        body = exp[2]
        if body then
          case body.first
          when :lasgn, :iasgn then
            exp[1] << exp.delete_at(2) if body[-1] == s(:gvar, :$!)
          when :block then
            exp[1] << body.delete_at(1) if [:lasgn, :iasgn].include?(body[1][0]) &&
              body[1][-1] == s(:gvar, :$!)
          end
        end

        exp << nil if exp.size == 2 # no body

        exp
      end