Digging deeper in some basic ruby code

One simple method but different realizations of it.