Ramanujan and extensions and contractions of continued fractions