What is the syntax for defining a method in Ruby?
روبی میں طریقہ کی وضاحت کے لیے نحو کیا ہے؟
- def method_nameAnswer
- method method_name
- function method_name
- define method_name
Source: SPSC Secondary School Teacher Science — 7 May 2024found on TestPoint
Explanation coming soon.
