Introduction
In Ruby, every method gives back a result when it finishes. This helps you use that result right away without extra steps.
When you want to get a calculation result from a method and use it immediately.
When you need to check if something is true or false after running a method.
When you want to build a list or string step-by-step using method results.
When you want to pass the result of one method directly into another method.
When you want to write clean code that flows naturally by chaining method calls.