A method in Ruby is defined using the def keyword
Similar to functions we can put some statements in a method that we plan to reuse in our code.
Here’s a trivial example
name = "Robert"
age = 42
return name, age
We can then use the method bob to call up details about the 42 year old Robert.