Step 1: Identify the metal ion in ruby.
Ruby is a red gemstone form of corundum.
Its red colour is due to the presence of
\[
\mathrm{Cr}^{3+}
\]
ions replacing some \(\mathrm{Al}^{3+}\) ions in the crystal lattice.
Step 2: Identify the metal ion in emerald.
Emerald is a green gemstone variety of beryl.
Its green colour is mainly due to the presence of
\[
\mathrm{Cr}^{3+}
\]
ions.
Step 3: Compare with the options.
Both ruby and emerald contain
\[
\mathrm{Cr}^{3+}
\]
as the important colouring metal ion.
Therefore, option (2) is correct.
Step 4: Final conclusion.
Hence, the metal ion present is
\[
\boxed{\mathrm{Cr}^{3+}}
\]