def opposite_method(new_name, old_name)
      define_method new_name do |*args, &blk|
        !send(old_name, *args, &blk)
      end
    end
def opposite_method(new_name, old_name)
      define_method new_name do |*args, &blk|
        !send(old_name, *args, &blk)
      end
    end
Creates a new method that returns the boolean negation of the
 specified method.