Ruby methods are defined with def...end. Ruby has flexible, expressive argument handling — default values, keyword arguments, splat (*) for variable arguments, and blocks — plus the convention that the last expression is the implicit return value.
Basic methods and implicit return
()
a + b
add(, )
()
