🔴 Ruby Methods

In Ruby, methods are blocks of reusable code. You define a method using the def keyword followed by its name and any optional parameters.

📌 Example: Define and Call a Method

Output will appear here...

📌 Return Values

Methods can return values using the return keyword, or Ruby will return the last evaluated expression by default.

💡 You can omit return unless you need to exit early or be explicit.

✅ Summary