doctrine of ripeness — Legal Definition, Examples & Cases