So far we have been using puts
in our methods.
In the above case the method info
doesn't return anything.
It prints the output. Let's change the code so that some other method
returns the city and method info
builds the message and prints the message.
In the above case method info
is calling method get_capital_city
. Method get_capital_city
is returning
the capital of the city. The method info
is using the returned value.